Re:Poll: Where do you live?
by gabrielsroka on Friday February 04, 2022 @04:45PM
(#30213747)
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[ Parent
| on HN ]
Re:Poll: Where do you live?
by newaccount74 on Friday February 04, 2022 @06:25PM
(#30214961)
Oh, I need to type Object.entries(x) instead of x.entries()
Makes sense, otherwise entries would contain itself.
Thank you!
Re:Poll: Where do you live?
by eyelidlessness on Friday February 04, 2022 @09:10PM
(#30216349)
Entries only iterates enumerable items (unless you make something evil). None of the native types with entries in their prototype iterate over that method