isNothing(x): x is typeof Nothing
x
x is typeof Nothing
Checks if x is Nothing.
isNothing(Nothing)// => true isNothing(1234)// => false isNothing("foobar")// => false
unknown
The value to check.
true if x is Nothing, false otherwise.
true
false
isJust