Reorder parameters if compose so that it uses the natural mathematical sense

This commit is contained in:
Tissevert 2020-01-03 08:47:07 +01:00
parent 4c9373a055
commit 56afea119a

2
fun.js
View file

@ -21,7 +21,7 @@ function Fun() {
function compose(f, g) {
return function() {
return g(f.apply(null, arguments));
return f(g.apply(null, arguments));
};
}