Bolshakova Anna ab21a11190 lab há 3 semanas atrás
..
index.d.ts ab21a11190 lab há 3 semanas atrás
index.js ab21a11190 lab há 3 semanas atrás
license ab21a11190 lab há 3 semanas atrás
package.json ab21a11190 lab há 3 semanas atrás
readme.md ab21a11190 lab há 3 semanas atrás

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