-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
this little library turned out very helpful for a project I'm working on. One thing though is not 100% clear to me. Is there any reason to use Function.apply over just calling a and b directly?
Currently I'm using this adaption of the function:
function joint( a ) {
var b = a[(a.length - 1)];
a.pop();
a = a.length > 1 ? joint( a ) : a[0];
return function(...args) {
return b( a(...args) )
};
}
It also also allows to pass arguments through the joint functions.
Cheers, Thomas
Metadata
Metadata
Assignees
Labels
No labels