https://github.com/kikobeats/array-future
A collection of Array prototypes prollyfills as proposition for ECMAScript 7.
https://github.com/kikobeats/array-future
Last synced: 11 days ago
JSON representation
A collection of Array prototypes prollyfills as proposition for ECMAScript 7.
- Host: GitHub
- URL: https://github.com/kikobeats/array-future
- Owner: Kikobeats
- License: mit
- Created: 2015-06-03T16:42:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-05-01T22:34:56.000Z (almost 4 years ago)
- Last Synced: 2025-04-12T09:54:41.114Z (14 days ago)
- Language: CoffeeScript
- Homepage:
- Size: 55.7 KB
- Stars: 72
- Watchers: 6
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# array-future

[](https://travis-ci.org/Kikobeats/array-future)
[](https://david-dm.org/Kikobeats/array-future)
[](https://david-dm.org/Kikobeats/array-future#info=devDependencies)
[](https://www.npmjs.org/package/array-future)
[](https://paypal.me/kikobeats)> A collection of Array prototypes prollyfills as proposition for ECMAScript 7.
> Prollyfill: A polyfill for a not yet standardized API.
## Install
```bash
npm install array-future --save
```If you want to use in the browser (powered by [Browserify](http://browserify.org/)):
```bash
bower install array-future --save
```and later link in your HTML:
```html
```
## Usage
### As library
```js
var arrayFuture = require('array-future')
```### As global
```js
require('array-future/register')
```## API
### Instance
* Array.clear()
* Array.clone()
* Array.combination({size})
* Array.compact()
* Array.difference({Array})
* Array.empty()
* Array.first()
* Array.includes({elem})
* Array.intersect({Array})
* Array.last()
* Array.max()
* Array.mean()
* Array.median()
* Array.min()
* Array.mode()
* Array.range()
* Array.remove({elem})
* Array.replace({oldElem}, {newElem})
* Array.shuffle()
* Array.sum()
* Array.unique()
* Array.zip({...others})### Static
* Array.range({start, stop, step})
## Related
* [array-list](https://github.com/Kikobeats/array-list) – Simple array list implementation.
* [json-future](https://github.com/Kikobeats/json-future) – Unbelievable and Modern JSON interface.## License
MIT © [Kiko Beats](http://www.kikobeats.com)