arrify-yh

0.0.1 • Public • Published

arrify Build Status

Convert a value to an array

Install

$ npm install --save arrify

Usage

const arrify = require('arrify');

arrify('unicorn');
//=> ['unicorn']

arrify(['unicorn']);
//=> ['unicorn']

arrify(null);
//=> []

arrify(undefined);
//=> []

Supplying null or undefined results in an empty array.

License

MIT © Sindre Sorhus

Package Sidebar

Install

npm i arrify-yh

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.34 kB

Total Files

4

Last publish

Collaborators

  • lucas_m