Files
upload-google-play/node_modules/arrify
Drew Heavner a29f8cd536 Finished action
Adding the monolith node_modules dir for deployment
2019-12-04 09:58:34 -05:00
..
2019-12-04 09:58:34 -05:00
2019-12-04 09:58:34 -05:00
2019-12-04 09:58:34 -05:00
2019-12-04 09:58:34 -05:00
2019-12-04 09:58:34 -05:00

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