A export type that represents an optional value.
Some<T>
None
This pattern is inspired by languages like Rust and helps avoid issues with null or undefined.
null
undefined
The export type of the contained value.
A export type that represents an optional value.
Some<T>: Indicates a value is present.None: Indicates the absence of a value.This pattern is inspired by languages like Rust and helps avoid issues with
nullorundefined.