Skip to content

Raynos/to-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Turn an array like into an array

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •