Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cav/pack.ts>isPojo

A server framework for Deno
Go to Latest
function isPojo
import { isPojo } from "https://deno.land/x/cav@0.0.14/pack.ts";

Utility function used in the packing functions that determines if an object is a plain object or not. Because this is such a common operation when checking and serializing unknown objects, it's being exported as part of the API.

Parameters

obj: unknown

Returns

obj is Record<string, unknown>