Skip to main content
Module

x/cav/mod.ts>isPojo

A server framework for Deno
Go to Latest
function isPojo
import { isPojo } from "https://deno.land/x/cav@0.2.0-alpha.7/mod.ts";

Determines if the object is a plain object or not. This also checks for prototype poisoning; it returns false whenever the prototype of an input object was poisoned before JSON.parsing it.

Parameters

obj: unknown

Returns

obj is Record<string | symbol, unknown>