src/util/compose.js
function compose() {
  var fnList = arguments;
  return function composed(initialArg) {
    var ret = initialArg;
    for (var i = 0; i < fnList.length; i++) {
      var fn = fnList[i];
      ret = fn.call(null, ret);
    }
    return ret;
  };
}
function compose() {
  var fnList = arguments;
  return function composed(initialArg) {
    var ret = initialArg;
    for (var i = 0; i < fnList.length; i++) {
      var fn = fnList[i];
      ret = fn.call(null, ret);
    }
    return ret;
  };
}
function compose ( ) { var fnList = arguments ; return function composed ( initialArg ) { var ret = initialArg ; for ( var i = 0 ; i < fnList . length ; i ++ ) { var fn = fnList [ i ] ; ret = fn . call ( null , ret ) ; } return ret ; } ; }
Compose multiple functions

`compose(f, g)` returns `function(x) { return f(g(x)); }`

@memberof util
@param {Function[]} functions The functions to compose
@return {Function}
Compose multiple functions