So I was playing abound in the V8 console and I did
Object.getOwnPropertyNames([])
I expected to get []
as a result, however ["length"]
SO this means that instead of being part of the prototype chain, length
is a member property of all Array
objects.
Is this a bug, or is there any design or specific reason length
is not the part of a prototype chain?