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
1 changed files with 1 additions and 1 deletions

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));
};
}