function mapOrimport { mapOr } from "https://deno.land/x/optio@1.0.0/mod.ts"; mapOr<T, U>(option: Option<T>,defaultValue: U,fn: (value: T) => U,): UReturns the provided default value (if None), or applies a function to the contained value (if Some). ExamplesExample 1 import { mapOr, Option, Some } from "https://deno.land/x/optio/mod.ts"; import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; const option: Option<string> = Some("Hello"); assertEquals(mapOr(option, 0, ({ length }) => length), 5); Type ParametersTUParametersoption: Option<T>defaultValue: Ufn: (value: T) => UReturnsU