import * as mandarinets from "https://deno.land/x/mandarinets@v2.3.2/plugins/optional.ts";
Classes
The optional class is used to avoid repetitive validation with If's. If an object is present, you can verify this with Optional.isPresent() If An object is not present but you would like to get a default value, you can do this with Optional.orElseGet(defaultValue); This classs allows you to avoid null exceptions. |