Closed
Description
The documentation of Option.getUnsafe
gives the example:
Option.getUnsafe(None) // Raises an error
However, the following code does not raise. I see undefined
printed to the console and no exception.
let x = Option.getUnsafe(None)
Js.log(j`$x`)
Why is there also an Option.getExn
function? That has the expected behavior, so I'm using that for now.
Metadata
Metadata
Assignees
Labels
No labels