pipe
Composes functions left-to-right: the output of each function is passed as input to the next.
The inverse of compose, which applies functions right-to-left.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
fn1 | function |
Returns
Section titled “Returns”function — A function that applies fns in order
Examples
Section titled “Examples”Transform a value through a pipeline
Section titled “Transform a value through a pipeline”Functions are applied left-to-right; the output of each becomes the input of the next.
Sanitise a string
Section titled “Sanitise a string”Chain string transforms left-to-right with pipe.
