source:
node_modules/es-toolkit/dist/compat/_internal/toArray.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 110 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | function toArray(value) { |
| 2 | return Array.isArray(value) ? value : Array.from(value); | |
| 3 | } | |
| 4 | ||
| 5 | export { toArray }; |
Note:
See TracBrowser
for help on using the repository browser.
