Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "omniclone", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "deep cloning function for js objects", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
# omniclone | ||
An isomorphic, customizable and fool proof javascript function for object deep cloning | ||
An isomorphic and configurable javascript function for object deep cloning | ||
```js | ||
@@ -13,3 +13,4 @@ omniclone(source, config); | ||
obj2; // { foo: { bar: 'baz' } }; | ||
obj == obj2; // false | ||
obj === obj2; // false | ||
obj.foo === obj2.foo; // false | ||
``` | ||
@@ -203,2 +204,3 @@ ## installation | ||
3. `Error` objects cannot be properly copied because of js limitations | ||
4. currently there is no isomorphic way to detect if an object is a `Proxy` nor is possible to access the handler object. Because of transparent virtualization, `omniclone` will copy each properties, the `constructor` and the `[[Prototype]]` directly from the proxed object. | ||
4. currently there is no isomorphic way to detect if an object is a `Proxy` nor is possible to access the handler object. Because of transparent virtualization, `omniclone` will copy each properties, the `constructor` and the `[[Prototype]]` directly from the proxed object. | ||
5. currenlty there is a lack of support for Map, Set, WeakMap and WeakSet objects. I'm working on this. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13962
205