funcifyr.js
function(fn1, fn2) {
        return function composed() {
          return fn1.call(null, fn2.apply(null, arguments));
        }
      }
function(fn1, fn2) {
        return function composed() {
          return fn1.call(null, fn2.apply(null, arguments));
        }
      }
function ( fn1 , fn2 ) { return function composed ( ) { return fn1 . call ( null , fn2 . apply ( null , arguments ) ) ; } }
Creates a function from two functions that runs fn1 on the results of fn2.

compose :: (fn, fn) → (a) → r

@param (fn1, fn2) - Two functions
@returns function
@param arguments - Any arguments passed to inner function
@returns Result of fn1(fn2(arguments))
Creates a function from two functions that runs fn1 on the results of fn2 .