conventional-changelog-action/node_modules/arrify
Tycho Bokdam 78aace1247
chore: Test release
2019-10-18 10:21:11 +02:00
..
index.js chore: Test release 2019-10-18 10:21:11 +02:00
license chore: Test release 2019-10-18 10:21:11 +02:00
package.json chore: Test release 2019-10-18 10:21:11 +02:00
readme.md chore: Test release 2019-10-18 10:21:11 +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