Throws an error since no value exists.
The base object used as a key (unused)
Executes the function since no value exists.
The base object used as a key (unused)
Function to execute
Rest
...vals: anyThe result of the function
Returns undefined since no value exists.
The base object used as a key (unused)
Always undefined
A class representing the absence of a value in the WeakOption pattern. This class implements the "None" case of the Option pattern, providing safe handling when no value exists.
Example