zhaoyu_ma 5d3259f632 代码混淆插件. 8 mesiacov pred
..
index.d.ts 5d3259f632 代码混淆插件. 8 mesiacov pred
index.js 5d3259f632 代码混淆插件. 8 mesiacov pred
license 5d3259f632 代码混淆插件. 8 mesiacov pred
package.json 5d3259f632 代码混淆插件. 8 mesiacov pred
readme.md 5d3259f632 代码混淆插件. 8 mesiacov pred

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