isNone<T> function

bool isNone<T>(
  1. Option<T> option
)

Returns true if the Option is a None.

expect(isNone(none()), true);
expect(isNone(some()), false);

Implementation

bool isNone<T>(Option<T> option) => option._isNone;