Prefer Object.entries instead of for loop #29
Closed
milamer
started this conversation in
Style Guide Suggestion
Replies: 1 comment 1 reply
-
I agree. I was looking at my for loop recommendation and was bothered by it, but didn’t consider entries. I haven’t double checked, but I’m guessing this works as expected for arrays as well? I’d welcome a pull request for this change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Together with
noUncheckedIndexedAccess
this is a pain.IMO better:
Beta Was this translation helpful? Give feedback.
All reactions