import { option } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { fromNullable } = option;
The fromNullable function takes a potentially null or undefined value and maps null or undefined to None and non-null and non-undefined values to Some<NonNullable>.
Parameters
a: A