Deep clones an object
The object to clone
Optional
A function that can be used to skip certain properties from being cloned
The cloned object
const clone = deepClone(obj, (owner, propertyName, current) => { if (propertyName === "dontCloneMe") return false; return true;}); Copy
const clone = deepClone(obj, (owner, propertyName, current) => { if (propertyName === "dontCloneMe") return false; return true;});
Deep clones an object