I’ve used a tap command with fp-ts pipes. It console logs and takes an optional label.
let tap = (x, f) => {
f(x)
x
}
let foo = "foo"->tap(~label="bar")
I’ve used a tap command with fp-ts pipes. It console logs and takes an optional label.
let tap = (x, f) => {
f(x)
x
}
let foo = "foo"->tap(~label="bar")