source: node_modules/es-toolkit/dist/compat/function/ary.js

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
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const ary$1 = require('../../function/ary.js');
6
7function 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
17exports.ary = ary;
Note: See TracBrowser for help on using the repository browser.