Skip to main content
Module

x/unknownutil/maybe.ts

🦕 An utility pack for handling unknown type in deno
Go to Latest
import * as unknownutil from "https://deno.land/x/unknownutil@v2.0.0/maybe.ts";

Functions

Return x as-is if the type of the value is array or undefined if not.

Return x as-is if the type of the value is boolean or undefined if not.

Return x as-is if the type of the value is function or undefined if not.

Return x as-is if the type of the value follow the reference or undefined if not.

Return x as-is if the type of the value is number or undefined if not.

Return x as-is if the type of the value is object or undefined if not.

Return x as-is if the type of the value is string or undefined if not.