1
0
15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө
..
index.d.ts 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө
index.js 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө
license 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө
readme.md 4e5c5d37f9 初步设计数据库,注册登录 10 сар өмнө

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