|
Download node_modules/arrify/readme.md from Huzaifa1313/professional_final_2026: direct link, hf CLI and curl.
- Browser
- Download file 543 Bytes
-
https://huggingface.co/spaces/Huzaifa1313/professional_final_2026/resolve/main/node_modules/arrify/readme.md
- Command line
-
hf download hf://spaces/Huzaifa1313/professional_final_2026/node_modules/arrify/readme.md
-
curl -L -o readme.md https://huggingface.co/spaces/Huzaifa1313/professional_final_2026/resolve/main/node_modules/arrify/readme.md
543 Bytes
| # arrify [](https://travis-ci.org/sindresorhus/arrify) | |
| > Convert a value to an array | |
| ## Install | |
| ``` | |
| $ npm install arrify | |
| ``` | |
| ## Usage | |
| ```js | |
| 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](https://sindresorhus.com) | |