Checks if a value is an object.
value
"object" in terms of this function means a regular object with string or Symbol properties.
string
This function does not behave the same as JavaScript's typeof operator, which returns "object" also for Arrays and null.
typeof
"object"
null
const result = isObject({});console.log(result); // true
const result = isObject([]);console.log(result); // false
true if value is an object, otherwise false
true
false
the value to check
Generated using TypeDoc
Checks if a
valueis an object."object" in terms of this function means a regular object with
stringor Symbol properties.Remarks
This function does not behave the same as JavaScript's
typeofoperator, which returns"object"also for Arrays andnull.Example
Example
Returns
trueifvalueis an object, otherwisefalse