Skip to main content
variable isObject
import { isObject } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Returns a boolean determining if the passed value is an object or not.

Uses the Object constructor to create an object wrapper for the given value. If the value is null or undefined, create and return an empty object. Οtherwise, return an object of a type that corresponds to the given value.

type

(obj: any) => unknown