mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
17 lines
243 B
JavaScript
17 lines
243 B
JavaScript
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;
|
|
}
|
|
};
|