Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gabrielsroka
on Feb 4, 2022
|
parent
|
context
|
favorite
| on:
Poll: Where do you live?
Object.entries
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
newaccount74
on Feb 4, 2022
[–]
Oh, I need to type Object.entries(x) instead of x.entries()
Makes sense, otherwise entries would contain itself.
Thank you!
eyelidlessness
on Feb 5, 2022
|
parent
[–]
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: