Skip to main content
variable getType
import { getType } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns the native type of a value.

Return 'undefined' or 'null' if the value is undefined or null. Otherwise, use Object.prototype.constructor.name to get the name of the constructor.

type

(v: any) => unknown