Skip to content
A robust & optimized ES3-compatible polyfill for the `Array.of` method in ECMAScript 6. https://mths.be/array-of
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tests
.eslintrc [Tests] add `npm run lint`
.gitattributes Initial commit
.gitignore
.travis.yml
CHANGELOG.md
LICENSE-MIT.txt
README.md
array-of.js [Tests] add `npm run lint`
detect.js
package.json v0.1.1

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.

Something went wrong with that request. Please try again.