node/tools/eslint/node_modules/arrify
silverwind d9b8758f47 tools: update ESLint to 2.7.0
PR-URL: https://github.com/nodejs/node/pull/6132
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
2016-04-20 16:24:21 -07:00
..
index.js tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11:00
license tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11:00
package.json tools: update ESLint to 2.7.0 2016-04-20 16:24:21 -07:00
readme.md tools: update eslint to v1.10.3 2016-01-14 22:20:14 +11: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