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



Oh, I need to type Object.entries(x) instead of x.entries()

Makes sense, otherwise entries would contain itself.

Thank you!


Entries only iterates enumerable items (unless you make something evil). None of the native types with entries in their prototype iterate over that method




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

Search: