Run a side effect when the option is none; the option flows through unchanged. The effect receives no arguments.
Dual API — works data-first or curried for use in pipe.
pipe
pipe( findUser(id), Option.tapNone(() => logger.warn("user not found", { id })), ) Copy
pipe( findUser(id), Option.tapNone(() => logger.warn("user not found", { id })), )
Run a side effect when the option is none; the option flows through unchanged. The effect receives no arguments.
Dual API — works data-first or curried for use in
pipe.