|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
341 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const ary$1 = require('../../function/ary.js');
|
|---|
| 6 |
|
|---|
| 7 | function ary(func, n = func.length, guard) {
|
|---|
| 8 | if (guard) {
|
|---|
| 9 | n = func.length;
|
|---|
| 10 | }
|
|---|
| 11 | if (Number.isNaN(n) || n < 0) {
|
|---|
| 12 | n = 0;
|
|---|
| 13 | }
|
|---|
| 14 | return ary$1.ary(func, n);
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | exports.ary = ary;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.