Extracts the successful value from a Result, throwing an error if it represents a failure.
A Result
The success value if present
An Err if the Result contains an error
const value = unsafe(someSafeFunction());// If someSafeFunction() returns an error, the error will be thrown Copy
const value = unsafe(someSafeFunction());// If someSafeFunction() returns an error, the error will be thrown
Extracts the successful value from a Result, throwing an error if it represents a failure.