returning false when isArray(obj)
kounelios13 opened this issue · 1 comments
kounelios13 commented
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?
NotCoderJack commented
@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?