NPM Smell 🍑💨

trivial and outdated NPM packages

array-slice outdated npm logo

Reimplements the native Array.prototype.slice() method.

Weekly Downloads
2,470,182
Dependencies
0
Latest Release
8 years ago
Switch to the native implementation.
Outdated
natively supported
since 13 years (chrome, firefox, safari, nodejs)

About

This dependency reimplements the native Array.prototype.slice() method. It is supported by all modern browsers and Node.js versions since the beginning of JavaScript (ES3).

// Get a subarray of an array
const arr = ["a", "b", "c", "d", "e"];
const subarr = arr.slice(1, 3);
// ["b", "c"]