arvin.torres e3ca5d94a7 Campanas de Paz para la Mujer | 5 лет назад | |
---|---|---|
.. | ||
README.md | 5 лет назад | |
index.js | 5 лет назад | |
package.json | 5 лет назад |
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