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