wallet-core/node_modules/nyc/node_modules/arrify
2017-12-10 21:51:33 +01:00
..
index.js add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
license add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00
package.json upgrade dependencies 2017-12-10 21:51:33 +01:00
readme.md add linting (and some initial fixes) 2017-05-28 00:40:43 +02:00

arrify Build Status

Convert a value to an array

Install

$ npm install --save arrify

Usage

const arrify = require('arrify');

arrify('unicorn');
//=> ['unicorn']

arrify(['unicorn']);
//=> ['unicorn']

arrify(null);
//=> []

arrify(undefined);
//=> []

Supplying null or undefined results in an empty array.

License

MIT © Sindre Sorhus