source:
node_modules/es-toolkit/dist/compat/array/reverse.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 130 bytes | |
| Rev | Line | |
|---|---|---|
| [a762898] | 1 | function reverse(array) { |
| 2 | if (array == null) { | |
| 3 | return array; | |
| 4 | } | |
| 5 | return array.reverse(); | |
| 6 | } | |
| 7 | ||
| 8 | export { reverse }; |
Note:
See TracBrowser
for help on using the repository browser.
