christian 4571a14169 android fix | 4 anni fa | |
---|---|---|
.. | ||
README.md | 5 anni fa | |
index.js | 5 anni fa | |
package.json | 4 anni fa |
Turn anything into an array
$ npm install --save array-ify
var arrayify = require('array-ify');
arrayify('unicorn');
//=> ['unicorn']
arrayify(['unicorn']);
//=> ['unicorn']
arrayify(null);
//=> [null]
arrayify(undefined);
//=> [undefined]
The difference that is this module does NOT turn null
or undefined
to an empty array.
MIT © Steve Mao