dns-witch.net.eu.org/node_modules/arrify
2025-07-05 18:19:59 +02:00
..
index 2.js 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
index.js 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
license 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
license 2 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
package 2.json 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
package.json 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
readme 2.md 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02:00
readme.md 11ty + RIP DNS Witch EU.ORG service 2025-07-05 18:19:59 +02: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