orNull Implementation
failureOrElse Implementation
const successfulResult = await asyncSuccess('some value').map(value => value + ', another value');successfulResult.orNull(); // produces: "some value, another value"successfulResult.failureOrElse('definitely this'); // produces: "definitely this" Copy
const successfulResult = await asyncSuccess('some value').map(value => value + ', another value');successfulResult.orNull(); // produces: "some value, another value"successfulResult.failureOrElse('definitely this'); // produces: "definitely this"
orNull Implementation
failureOrElse Implementation