Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/unknownutil/is.ts>isObject

🦕 An utility pack for handling unknown type in deno
Go to Latest
function isObject
import { isObject } from "https://deno.land/x/unknownutil@v2.0.0/is.ts";

Return true if the type of x is object.

Use pred to predicate the type of values.

Type Parameters

T extends unknown

Parameters

x: unknown
optional
pred: Predicate<T>

Returns

x is Record<string, T>