Skip to main content
Module

x/scaffold/src/deps/npm.ts>isObjectLike

scaffold your next project with style and 💗
Latest
function isObjectLike
import { isObjectLike } from "https://deno.land/x/scaffold@0.3.0/src/deps/npm.ts";

Returns whether the payload is an object like a type passed in < >

Usage: isObjectLike<{id: any}>(payload) // will make sure it's an object and has an id prop.

Type Parameters

T extends PlainObject

this must be passed in < >

Parameters

payload: any

Returns

payload is T