15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
..
index.d.ts 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
index.js 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
license 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 mesi fa
readme.md 4e5c5d37f9 初步设计数据库,注册登录 10 mesi 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