compose(n, f1, f2, f3..., fn) // === fn(...(f3(f2(f1(n)))))Примеры
var doubleTheValue = function(val) { return val * 2; }
var addOneToTheValue = function(val) { return val + 1; }
compose(5, doubleTheValue)
// should === 10
compose(5, doubleTheValue, addOneToTheValue)
// should === 11
👉 @seniorFront