array.of

A robust & optimized Array.of polyfill, based on the ECMAScript 6 specification.

ES6 Array.of polyfill

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

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');
Mathias Bynens

This polyfill is available under the MIT license.