Protected
Readonly
factoryProtected
checkLike tap, but operates on a tuple with both the first value and the tapped value.
Like tap, but always returns the original pipe type.
Apply the given operator to the item in the pipe, and return a new pipe with the result.
Pipe.wrap(2)
.tap(x => x * 4)
.get() // => 8
If check
is falsy, apply the given operator to the item in the pipe and return the result.
Otherwise, just return the current pipe unchanged.
If check
is truthy, apply the given operator to the item in the pipe and return the result.
Otherwise, just return the current pipe unchanged.
Static
id
A class for writing chained/conditional operations in a data-flow manner.
This is useful when you need to do a series of operations on an object, perhaps conditionally.