A class representing an Option that does not contain a value. This is the "None" variant of the Option type, indicating the absence of a value.
Returns this None instance, ignoring the provided function. Since there's no value to apply the function to, None is returned.
The type of the value that would be returned by the function
Function to apply (unused)
This None instance
Type guard that always returns true for None instances.
Always true, indicating this Option contains no value
Type guard that always returns false for None instances.
Always false, indicating this Option contains no value
Executes the None handler function since this Option contains no value.
The return type of the match functions
Object containing Some and None handler functions
The result of executing obj.None
Returns the result of the provided function since this Option has no value. This provides an alternative Option when the current one is None.
The type of the alternative Option
Function that returns an alternative Option
The result of executing f()
Throws an error since this Option contains no value. This method should only be called when you're certain the Option contains a value.
Never returns (always throws)
Always throws since None has no value
Returns the provided default value since this Option contains no value.
The type of the default value
The default value to return
The provided default value
Returns the result of the provided function since this Option contains no value.
The type of the value returned by the function
Function that returns a default value
Returns undefined since this Option contains no value. This provides interoperability with standard JavaScript nullable patterns.
Always undefined
A class representing an Option that does not contain a value. This is the "None" variant of the Option type, indicating the absence of a value.