https://github.com/micheleriva/range-prototype
Extend your JavaScript Number type with a ~100 bytes polyfill
https://github.com/micheleriva/range-prototype
es5 es6 generator ie8 iterator javascript js nodejs polyfill prototype python range ruby
Last synced: 6 months ago
JSON representation
Extend your JavaScript Number type with a ~100 bytes polyfill
- Host: GitHub
- URL: https://github.com/micheleriva/range-prototype
- Owner: micheleriva
- License: mit
- Created: 2018-09-13T13:02:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-13T13:13:54.000Z (about 7 years ago)
- Last Synced: 2025-02-07T12:46:49.049Z (8 months ago)
- Topics: es5, es6, generator, ie8, iterator, javascript, js, nodejs, polyfill, prototype, python, range, ruby
- Language: JavaScript
- Size: 32.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Range Prototype
[](https://travis-ci.org/micheleriva/range-prototype)
[](https://opensource.org/licenses/MIT)Extend your JavaScript `Number` type with a **100 bytes** polyfill:
```js
require('range-prototype')const list = [...10] // => [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
```# Installation
**yarn**
```sh
$ yarn add range-prototype
```**npm**
```sh
$ npm install range-prototype
```then simply require it in your project:
```js
require('range-prototype')
```**For old browsers**
```html[...5] // => [ 0, 1, 2, 3, 4 ]
```
# License
[MIT](/LICENSE.md)