arrayify
Convert array like items or individual items into arrays (for both browser and server)
![NPM version](https://badge.fury.io/js/arrayify.png)
Installation
npm install arrayify
Usage
var divs = document.getElementsByTagName('div')
toArray(divs)
(function() {
toArray(arguments)
})(1, 2)
toArray('hello')
toArray(12345)
toArray(/regex/)
toArray(null)
toArray({})
toArray(new Date)
toArray(undefined)
toArray(window)
toArray('a.important', {query: true})
License
This library is based off of work by @timoxley on the to-array component which is MIT licensed.
This library is therefore also MIT licensed.