array.from

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

npm install array.from
6 downloads in the last week
7 downloads in the last month

ES6 Array.from polyfill Build status

A robust & optimized ES3-compatible polyfill for the Array.from method in ECMAScript 6.

Installation

In a browser:

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

Via npm:

npm install array.from

Then, in Node.js:

require('array.from');

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

Author

twitter/mathias
Mathias Bynens

License

This polyfill is available under the MIT license.

npm loves you