/
var
/
www
/
cobraambalaj
/
node_modules
/
klona
/
json
/
/var/www/cobraambalaj/node_modules/klona/json
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
38
0644
edit
dl
rm
index.js
621
0644
edit
dl
rm
index.min.js
542
0644
edit
dl
rm
index.mjs
605
0644
edit
dl
rm
Edit:
/var/www/cobraambalaj/node_modules/klona/json/index.js
(621B)
function klona(val) { var k, out, tmp; if (Array.isArray(val)) { out = Array(k=val.length); while (k--) out[k] = (tmp=val[k]) && typeof tmp === 'object' ? klona(tmp) : tmp; return out; } if (Object.prototype.toString.call(val) === '[object Object]') { out = {}; // null for (k in val) { if (k === '__proto__') { Object.defineProperty(out, k, { value: klona(val[k]), configurable: true, enumerable: true, writable: true, }); } else { out[k] = (tmp=val[k]) && typeof tmp === 'object' ? klona(tmp) : tmp; } } return out; } return val; } exports.klona = klona;
Save
cmd:
run