gummesson/is-empty-object

returning false when isArray(obj)

kounelios13 opened this issue · 1 comments

Hello.As I was studying the index.js I noticed that on line 17 when isArray(obj) you return false.
Why Is that?

Let's say I have an empty array .Shouldn't is be considered as an empty object?

@kounelios13 though array is an object in nature, but this lib aims to test whether an object is empty or not.
@gummesson object.keys() only return enumerable props, what if the target object contains non-enumerable props?