Hacker Newsnew | comments | show | ask | jobs | submit login

No. The length property of an array returns the index of the last value, plus one. Objects are the associative arrays, but they do not have a length.

Arrays are numerically indexed, but if a keystring is a base-10 integer, it will get interpreted as an index. If not, the corresponding property of the array object will be returned instead.




Applications are open for YC Winter 2016

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: