Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Because [] doesn't have a 'call' attribute, but does have 'sort' attribute (remember that Javascript has a funky object notation, which is why people have to do elaborate dances to iterate over objects), and because the 'sort' attribute of [] itself is an object with a 'call' attribute.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: