Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A robust & optimized ES3-compatible polyfill for the `Array.from` method in ECMAScript 6.
JavaScript
Branch: master

Merge pull request #16 from davidmarkclements/patch-1

[Fix] Make sure to return an array with writable indices
latest commit a1392bebb0
@ljharb ljharb authored

README.md

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.

Something went wrong with that request. Please try again.