๐Ÿ’พarr.copy()

JS โŸฉ objects โŸฉ Array โŸฉ methods โŸฉ copy()

// ๐Ÿ”ธ arr.copy()
Array.prototype.copy = function(){
    return this.slice();
};

Last updated

Was this helpful?