消除我特牛
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
yangqiwen 03a1cf9129 消除我特牛 4 weeks ago
..
index.d.ts 消除我特牛 4 weeks ago
index.js 消除我特牛 4 weeks ago
license 消除我特牛 4 weeks ago
package.json 消除我特牛 4 weeks ago
readme.md 消除我特牛 4 weeks ago

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