compose()

Create a new function which is basically the composition of two functions.

This function is valid in v2.0.0 to v2.12.0. This function has been downloaded 11 times.

Parameters

{Function} fnWrapper
Function that will be passed the return value of fnToWrap and whose return value will be returned by the composed function.
{Function} fnToWrap
Function that will be called 1st by te composed function and whose return value will be passed to fnWrapper.
{boolean=} opt_applyArgs Optional, Default:false
Set to true if the return value from fnToWrap is an Array and each element should be passed a separate argument to fnWrapper. Leave blank or set to false if the return value from fnToWrap should just be passed as the 1st argument to fnWrapper.

Returns

{Function}
The function that is composed of fnToWrap and fnWrapper.