|
Last change
on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
252 bytes
|
| Rev | Line | |
|---|
| [a762898] | 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.