About
This dependency reimplents the native Array.prototype.slice()
method. It is supported by all modern browsers and Node.js versions since about 11 years.
// Get a subarray of an array
const arr = ["a", "b", "c", "d", "e"];
const subarr = arr.slice(1, 3);
// ["b", "c"]