lix-website/themes/lix/assets/bootstrap/node_modules/arrify/readme.md
2024-04-26 22:49:34 -06:00

519 B

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