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 and has at least one own enumerable string-keyed property.
value
Object
null
typeof
function
object
The value to check.
Returns true if value is a non-empty object, else false.
true
false
isNonEmptyObject({ a: 1, b: 2, c: 3 })// => trueisNonEmptyObject({})// => false Copy
isNonEmptyObject({ a: 1, b: 2, c: 3 })// => trueisNonEmptyObject({})// => false
Checks if
value
is the language type ofObject
, that is, a value that is notnull
and has atypeof
result offunction
orobject
and has at least one own enumerable string-keyed property.