1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/node_modules/arity-n/N.js
cp6 fd22b0bf58 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:02:12 +11:00

17 lines
243 B
JavaScript
Vendored

var arityFn = [
require('./0'),
require('./1'),
require('./2'),
require('./3'),
require('./4'),
require('./5')
];
module.exports = function(fn, n) {
if (n && n <= 5) {
return arityFn[n](fn);
} else {
return fn;
}
};