node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

array.of

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.