Module

std/node/util.ts>isPrimitive

Deno standard library
Go to Latest
function isPrimitive
Deprecated
Deprecated
  • use value === null || (typeof value !== "object" && typeof value !== "function") instead.
import { isPrimitive } from "https://dotland.deno.dev/std@0.116.0/node/util.ts";

Parameters

value: unknown

Returns

boolean