generateur_v3/fold/node_modules/.pnpm/arrify@1.0.1/node_modules/arrify
2023-02-23 17:11:57 +01:00
..
index.js deploy test 2023-02-23 17:11:57 +01:00
license deploy test 2023-02-23 17:11:57 +01:00
package.json deploy test 2023-02-23 17:11:57 +01:00
readme.md deploy test 2023-02-23 17:11:57 +01: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