4 ms·
Oh, I need to type Object.entries(x) instead of x.entries() Makes sense, otherwise entries would contain itself. Thank you!
by newaccount74 5y ago
Oh, I need to type Object.entries(x) instead of x.entries()
Makes sense, otherwise entries would contain itself.
Thank you!
- eyelidlessness 5y agoEntries only iterates enumerable items (unless you make something evil). None of the native types with entries in their prototype iterate over that method