Range Prototype
Extend your JavaScript Number
type with a 100 bytes polyfill:
const list = ...10 // => [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
Installation
yarn
$ yarn add range-prototype
npm
$ npm install range-prototype
then simply require it in your project: