This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/function/ary.js
T

18 lines
341 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const ary$1 = require('../../function/ary.js');
function ary(func, n = func.length, guard) {
if (guard) {
n = func.length;
}
if (Number.isNaN(n) || n < 0) {
n = 0;
}
return ary$1.ary(func, n);
}
exports.ary = ary;