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.0.21/mod.ts";

Utility function used in the serial 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>