SmartMirror-Projektarbeit/node_modules/arrify
2022-03-10 10:36:59 +01:00
..
index.d.ts added all files to project 2022-03-10 10:36:59 +01:00
index.js added all files to project 2022-03-10 10:36:59 +01:00
license added all files to project 2022-03-10 10:36:59 +01:00
package.json added all files to project 2022-03-10 10:36:59 +01:00
readme.md added all files to project 2022-03-10 10:36:59 +01: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