JS ⟩ objects ⟩ Array ⟩ methods ⟩ copy()
// 🔸 arr.copy() Array.prototype.copy = function(){ return this.slice(); };
arr.slice()
Copy array by value
Last updated 1 year ago