mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 510 forks source link

Object.keys return unwanted key #2714

Closed newbie78 closed 9 years ago

newbie78 commented 9 years ago

http://jsfiddle.net/syus4L73/ returned ["0", "1", "2", "3", "length"] i think "length" unnecessary key or how to receive an array without this key?

thanx

DimitarChristoff commented 9 years ago

you are calling it on a HTMLElement collection which is an array which is an object with array like properties like length.

also this is handled by the browser natively in modern browsers. please ask questions on the mailing list instead, this is not an issue.