4 ms·
You shouldn't normally need to iterate over object keys. Doing so is a pretty big indication of bad design. If you do you should use `Object.entries()` which av
by IshKebab 4y ago
You shouldn't normally need to iterate over object keys. Doing so is a pretty big indication of bad design. If you do you should use `Object.entries()` which avoids enumerating properties in the prototype chain.
There's really no reason at all to use for-in and its use is usually a mistake.