You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
It also also allows to pass arguments through the joint functions.
Cheers, Thomas
The text was updated successfully, but these errors were encountered: