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

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 252 bytes
RevLine 
[a762898]1import { ary as ary$1 } from '../../function/ary.mjs';
2
3function 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
13export { ary };
Note: See TracBrowser for help on using the repository browser.