A robust & optimized ES3-compatible polyfill for the `Array.of` method in ECMAScript 6.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.eslintrc
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
LICENSE-MIT.txt
README.md
array-of.js
detect.js
package.json

README.md

ES6 Array.of polyfill Build status

An robust & optimized ES3-compatible polyfill for the Array.of method in ECMAScript 6.

Installation

In a browser:

<script src="array-of.js"></script>

Via npm:

npm install array.of

Then, in Node.js:

require('array.of');

// On Windows and on Mac systems with default settings, case doesn’t matter,
// which allows you to do this instead:
require('Array.of');

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.