Allows quick triple-equal equality check between the values inside two Results without having to unwrap them first.
Result
const a = Result.of(3)const b = Result.of(3)const c = Result.of(null)const d = Result.nothing()Result.equals(a, b) // trueResult.equals(a, c) // falseResult.equals(c, d) // true Copy
const a = Result.of(3)const b = Result.of(3)const c = Result.of(null)const d = Result.nothing()Result.equals(a, b) // trueResult.equals(a, c) // falseResult.equals(c, d) // true
A maybe to compare to.
maybe
A maybe instance to check.
Generated using TypeDoc
Allows quick triple-equal equality check between the values inside two
Result
s without having to unwrap them first.