Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cav/examples/chat/deps.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/examples/chat/deps.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>