parcoursup/node_modules/arrify/readme.md
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01: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