Skip to main content
Module

x/unitest/deps.ts>isObject

🃏 Deno-first universal unit testing framework
Latest
function isObject
Re-export
import { isObject } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument is type of object or not

Examples

Example 1

import { isObject } from './mod.ts'
isObject({}) // true
isObject(null) // false

Parameters

value: unknown
  • Input any value

Returns

value is object

The result of typeof value === "object" && value !== null