Checks if value is the language type of Object, that is, a value that is not null and has a typeof result of function or object.
value
Object
null
typeof
function
object
The value to check.
Returns true if value is an object, else false.
true
false
isObject({ a: 1, b: 2, c: 3 })// => trueisObject(123)// => falseisObject(null)// => false Copy
isObject({ a: 1, b: 2, c: 3 })// => trueisObject(123)// => falseisObject(null)// => false
Checks if
value
is the language type ofObject
, that is, a value that is notnull
and has atypeof
result offunction
orobject
.