Package Exports
- array-ify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (array-ify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Turn anything into an array
Install
$ npm install --save array-ifyUsage
var arrayify = require('array-ify');
arrayify('unicorn');
//=> ['unicorn']
arrayify(['unicorn']);
//=> ['unicorn']
arrayify(null);
//=> [null]
arrayify(undefined);
//=> [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