Skip to content
Turn an array like into an array
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
LICENCE
README.md
index.js
package.json

README.md

to-array

Turn an array like into an array. Designed for browser support in older browsers.

Example

var toArray = require("to-array")
    , elems = document.links

var array = toArray(elems)

Can also return an array from a specific index

(function () {
  toArray(arguments, 2) // [3, 4]
})(1, 2, 3, 4)

Installation

npm install to-array

Contributors

MIT Licenced

You can’t perform that action at this time.