JS ⟩ objects ⟩ Array ⟩ methods ⟩ copy()
// 🔸 arr.copy() Array.prototype.copy = function(){ return this.slice(); };
arr.slice()
Copy array by valuearrow-up-right
Last updated 3 years ago