Type guard to check if an Option is a None value. This function is used to narrow down the type of an Option to NoneOption in TypeScript's type system.
The Option to be checked.
true if the provided Option is a NoneOption, false otherwise.
const option = None;if (isNone(option)) { console.log('Option does not have a value.');} Copy
const option = None;if (isNone(option)) { console.log('Option does not have a value.');}
Use Option.isNone instead.
Option.isNone
Type guard to check if an Option is a None value. This function is used to narrow down the type of an Option to NoneOption in TypeScript's type system.