ouroboros-group/old/mybulma/node_modules/arrify
2023-09-09 02:27:22 -06:00
..
index.js 202309090227 2023-09-09 02:27:22 -06:00
license 202309090227 2023-09-09 02:27:22 -06:00
package.json 202309090227 2023-09-09 02:27:22 -06:00
readme.md 202309090227 2023-09-09 02:27:22 -06:00

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