Clones an object or an array
obj object or array, object to clone
Returns Object or Array
Makes a deep copy of the specified object or the array. Similar to Object.assign, except it makes a deep copy. If you pass an array is specified, it will return array. If you pass an object, it will return an object.

User Comments

comments powered by Disqus