@indra.ai/deva 1.1.65 → 1.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1843,15 +1843,7 @@ class Deva {
|
|
|
1843
1843
|
for copying.
|
|
1844
1844
|
***************/
|
|
1845
1845
|
copy(obj) {
|
|
1846
|
-
|
|
1847
|
-
const output = Array.isArray(data) ? [] : {};
|
|
1848
|
-
let v, key;
|
|
1849
|
-
for (key in data) {
|
|
1850
|
-
v = obj[key];
|
|
1851
|
-
output[key] = (typeof v === "object") ? walkData(v) : v;
|
|
1852
|
-
}
|
|
1853
|
-
}
|
|
1854
|
-
return walkData(obj);
|
|
1846
|
+
return JSON.parse(JSON.stringify(obj));
|
|
1855
1847
|
}
|
|
1856
1848
|
|
|
1857
1849
|
/**************
|