fjs.compose facilitates multiple function composition. This is the generation of a higher order function by combining simpler functions.
Example with 2 functions
The output from the right-most function is passed as the argument to the next function on the left, “hello 2” is then returned as a single result.
Example with 3 functions
This example illustrates the combining of multiple functions, passing the output from function “g” as a parameter to function “f”, then passing the output from function “f” as a parameter to function “e”. “hello 201” is then returned as a single result.