15270821319 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses
..
index.d.ts 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses
index.js 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses
license 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses
package.json 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses
readme.md 4e5c5d37f9 初步设计数据库,注册登录 hace 10 meses

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