conventional-changelog-action/node_modules/arrify
Conventional Changelog Action 7f7af7582e chore(release): v3.4.1 2020-10-30 22:27:33 +00:00
..
index.js chore(release): v3.4.1 2020-10-30 22:27:33 +00:00
license chore(release): v3.4.1 2020-10-30 22:27:33 +00:00
package.json chore(release): v3.4.1 2020-10-30 22:27:33 +00:00
readme.md chore(release): v3.4.1 2020-10-30 22:27:33 +00: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