The module returns a function to create clones of the passed objects.
This function creates a Proxy object based on the given to create a clone.
It means that this operation is lazily and very effective but depends on the native support of proxy objects.
core/object/proxy-clone
The module returns a function to create clones of the passed objects. This function creates a Proxy object based on the given to create a clone. It means that this operation is lazily and very effective but depends on the native support of proxy objects.
Known limitations
Because the process of cloning uses native Proxy objects, there are a few limitations:
Object.preventExtension
at a clone object because it should be applied to the original object.Object.isExtensible
always returns a value from the original object.configurable: false
attribute in the original object.Common clone
The module also exports a common implementation to clone objects. If the runtime supports Proxy API, it will be used.