isJust<T>(x): x is Just<T>
T
x
x is Just<T>
Checks if x is not Nothing.
isJust(1234)// => true isJust("foobar")// => true isJust(Nothing)// => false
• T
The type of value x.
Maybe<T>
Maybe
The value to check.
false if x is Nothing, true otherwise.
false
true
isNothing