1
0
Fork 0
arangodb/js/node/node_modules/eslint/node_modules/arrify
Alan Plum cf302adf26
Always use --global-style when installing npm deps
This partially reverts commit 8a286a30d9.
2016-07-14 16:29:20 +02:00
..
index.js Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
license Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
package.json Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00
readme.md Always use --global-style when installing npm deps 2016-07-14 16:29:20 +02:00

readme.md

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