katoikia-app/web-ui/web-react/node_modules/arity-n/N.js

17 lines
243 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
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;
}
};