Turn anything into an array
Install
$ npm install --save array-ify
Usage
var arrayify = ; ;//=> ['unicorn'] ;//=> ['unicorn'] ;//=> [null] ;//=> [undefined]
Related
- arrify - Convert a value to an array
The difference that is this module does NOT turn null
or undefined
to an empty array.
License
MIT © Steve Mao