itcast 6e512b8ce6 aaaa 3 сар өмнө
..
index.d.ts 6e512b8ce6 aaaa 3 сар өмнө
index.js 6e512b8ce6 aaaa 3 сар өмнө
license 6e512b8ce6 aaaa 3 сар өмнө
package.json 6e512b8ce6 aaaa 3 сар өмнө
readme.md 6e512b8ce6 aaaa 3 сар өмнө

readme.md

arrify Build Status

Convert a value to an array

Install

$ npm install arrify

Usage

const arrify = require('arrify');

arrify('🦄');
//=> ['🦄']

arrify(['🦄']);
//=> ['🦄']

arrify(new Set(['🦄']));
//=> ['🦄']

arrify(null);
//=> []

arrify(undefined);
//=> []

Supplying null or undefined results in an empty array.

License

MIT © Sindre Sorhus