Non enumerable properties will not be checked. They can't be.
I notice you are using a for ... in loop to iterate over the properties of an object.
From my understanding, for ... in loops will not include enumerable properties, however Object.getOwnPropertyNames does.
I'm curious if there's a specific reason you didn't / can't use it instead? Is it because for ... in includes inherited properties from up the prototype chain?
In the README you mention that:
I notice you are using a
for ... in
loop to iterate over the properties of an object.From my understanding,
for ... in
loops will not include enumerable properties, howeverObject.getOwnPropertyNames
does.I'm curious if there's a specific reason you didn't / can't use it instead? Is it because
for ... in
includes inherited properties from up the prototype chain?