Generic TypeGuard against null or undefined values.
The type of the value to test.
value
Optional
The value to test.
const maybeValue: string | undefined = "TypeScript";isSome(maybeValue)// => true// typeof maybeValue is string Copy
const maybeValue: string | undefined = "TypeScript";isSome(maybeValue)// => true// typeof maybeValue is string
Generated using TypeDoc
Generic TypeGuard against null or undefined values.