Below are sectioned descriptions and code usages of each implemented Common Utility. Read more about each common utility within each package's README!
Compose π
Compose is a common function that take the output from one function and automatically patches it to the input of the next function until it spits out the final value.
Compose is useful for computing a series of functions in a composed fashion improving code readability and testability.
Head is a common function for return the value of the first item in an Array.
Usage
head([0, 1, 2, 3, 4]) // 01
Pipe β
Pipe is a common function that take the output from one function and automatically patches it to the input of the next function until it spits out the final value in the opposite order of Compose.
Like compose, Pipe is useful for computing a series of functions in a composed fashion improving code readability and testability but in the opposite order of Compose.