Skip to content

isObject

Determine whether the input value is an object (excluding null).

Usage

ts
import { isObject } from 'rattail'

isObject({}) // return true
isObject([]) // return true
isObject(null) // return false

Arguments

ArgTypeDefaults
valueany

Return

Type
boolean