Examplejs const arrayify = require('array-back')
Array ⏏Takes any input and guarantees an array back.
arguments) to a real arrayundefined to an empty arraynull) into an array containing that valueKind: Exported function
| Param | Type | Description |
|---|---|---|
| input | * |
the input value to convert to an array |
Example
```js
a.arrayify(undefined)
[]a.arrayify(null)
[ null ]a.arrayify(0)
[ 0 ]a.arrayify([ 1, 2 ])
[ 1, 2 ]function f(){ return a.arrayify(arguments); }
f(1,2,3)
[ 1, 2, 3 ]
```
© 2015-17 Lloyd Brookes <75pound@gmail.com\. Documented by jsdoc-to-markdown.