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

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