wrangler-action/node_modules/arrify
2023-08-07 15:11:15 -05:00
..
index.js Temp fix for deps issue 2023-08-07 15:11:15 -05:00
license Temp fix for deps issue 2023-08-07 15:11:15 -05:00
package.json Temp fix for deps issue 2023-08-07 15:11:15 -05:00
readme.md Temp fix for deps issue 2023-08-07 15:11:15 -05: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