import { option } from "https://deno.land/x/fun@v2.0.0-alpha.6/mod.ts";
const { mapNullable } = option;
mapNullable is useful for piping an option's values through functions that may return null or undefined.
Examples
const a = pipe(
some([1, 2, 3]),
mapNullable(numbers => numbers[3])
); // None (Option)
const a = pipe( some([1, 2, 3]), mapNullable(numbers => numbers[3]) ); // None (Option)