source:
node_modules/es-toolkit/dist/compat/function/ary.mjs@
a762898
| Last change on this file since a762898 was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 252 bytes | |
| Line | |
|---|---|
| 1 | import { ary as ary$1 } from '../../function/ary.mjs'; |
| 2 | |
| 3 | function ary(func, n = func.length, guard) { |
| 4 | if (guard) { |
| 5 | n = func.length; |
| 6 | } |
| 7 | if (Number.isNaN(n) || n < 0) { |
| 8 | n = 0; |
| 9 | } |
| 10 | return ary$1(func, n); |
| 11 | } |
| 12 | |
| 13 | export { ary }; |
Note:
See TracBrowser
for help on using the repository browser.
