💾arr.copy()

JSobjectsArraymethods ⟩ copy()

// 🔸 arr.copy()
Array.prototype.copy = function(){
    return this.slice();
};

Last updated