w2utils.clone

Clones an object or an array
clone(obj)
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