Allows quick triple-equal equality check between the values inside two maybe instances without having to unwrap them first.
maybe
const a = Maybe.of(3);const b = Maybe.of(3);const c = Maybe.of(null);const d = Maybe.nothing();Maybe.equals(a, b); // trueMaybe.equals(a, c); // falseMaybe.equals(c, d); // true Copy
const a = Maybe.of(3);const b = Maybe.of(3);const c = Maybe.of(null);const d = Maybe.nothing();Maybe.equals(a, b); // trueMaybe.equals(a, c); // falseMaybe.equals(c, d); // true
A maybe to compare to.
A maybe instance to check.
Allows quick triple-equal equality check between the values inside two
maybe
instances without having to unwrap them first.