Readonly_Readonly[toAsync variant of fold. Accepts sync or async handlers on either branch and always returns a Promise, keeping chains fluent when at least one branch is async.
ReadonlymapReturns the contained value or null
Extract the value or throw an error
Returns the contained value or undefined
Converts this monad to an Option.
Conversion rules:
Returns a string representation of an object.
ReadonlyvalueConverts this monad to an Either.
Conversion rules:
The value to use for the Left case when the source is empty/none/failure
An Either with the value as Right or the provided leftValue as Left
Converts this container to a Promise
The behavior depends on the implementing container:
A Promise that resolves or rejects based on the container's state
Converts this monad to a Try.
Conversion rules:
A Try containing Success with the value or Failure with an appropriate error
Right variant of Either. Discriminated by
_tag: "Right"withvalue: R.