Turn an array like into an array. Designed for browser support in older browsers.
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)
npm install to-array
- Raynos
- Olivier Scherrer