typescript-optional
typescript-optional copied to clipboard
orElseThrow should be able to interrupt the application flow.
In some cases, orElseThrow()
won't stop the normal flow of the application as it happens in Java, providing undefined or wrong values as return value of a method that is using Optional