Early Return in TypeScript `.pipe` Call

How do I sort of "early return" from a
.pipe
call?

Like

Micro.map(
  Micro.andThen(() => {..something}),
  // here return if value is true
  Micro.andThen(() => {...}) // <- this should only be ran if value is false
)
Was this page helpful?