|
Download node_modules/arrify/readme.md from Huzaifa1313/professionals-backend: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/professionals-backend/resolve/main/node_modules/arrify/readme.md
- Command line
-
hf download hf://spaces/Huzaifa1313/professionals-backend/node_modules/arrify/readme.md
-
curl -L -o readme.md https://huggingface.co/spaces/Huzaifa1313/professionals-backend/resolve/main/node_modules/arrify/readme.md
543 Bytes
arrify
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