isObject
Checks if a value is a non-null object.
Returns true for plain objects, arrays, class instances, etc.
Returns false for null, primitives, and functions.
Usage
isObject(value: unknown)
Checks if a value is a non-null object.
Returns true for plain objects, arrays, class instances, etc.
Returns false for null, primitives, and functions.
Parameters
valueunknownrequired
the value to test.
Returns
whether value is a non-null object; a true result narrows it to object.