Bakhtina Sofya b84cb877be 1st comm 3 settimane fa
..
index.d.ts b84cb877be 1st comm 3 settimane fa
index.js b84cb877be 1st comm 3 settimane fa
license b84cb877be 1st comm 3 settimane fa
package.json b84cb877be 1st comm 3 settimane fa
readme.md b84cb877be 1st comm 3 settimane fa

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