es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
18 lines (13 loc) • 341 B
JavaScript
;
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;