API/api.medcify.app/node_modules/arrify
2022-09-26 11:41:44 +05:30
..
index.d.ts final 2022-09-26 11:41:44 +05:30
index.js final 2022-09-26 11:41:44 +05:30
license final 2022-09-26 11:41:44 +05:30
package.json final 2022-09-26 11:41:44 +05:30
readme.md final 2022-09-26 11:41:44 +05:30

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