toarray
I find myself writing `item = item instanceof Array ? item : [item]` a lot, so I decided to make a simple library to does it for me. A few examples:
Ecosystem
npmjs.org
npmjs.org
Latest Release
almost 13 years ago
0.0.1
almost 13 years ago
Versions
2
2
Downloads
36,657 last month
36,657 last month
Dependent Packages
48
48
Dependent Repos
542
542
Loading...
Readme
Loading...
Links
| Registry | npmjs.org |
| Source | Repository |
| JSON API | View JSON |
| CodeMeta | codemeta.json |
Package Details
| PURL |
pkg:npm/toarray
spec |
| License | BSD-3-Clause |
| First Release | about 13 years ago |
| Last Synced | about 1 month ago |
Rankings on npmjs.org
Overall
Top 5.5%
Downloads
Top 1.0%
Dependent packages
Top 0.6%
Dependent repos
Top 0.7%
Docker downloads
Top 0.8%