-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for..of on an array?? #12
Comments
Yeah, I believe you're right. I guess we just need a |
Using |
EDIT: Actually in that code, we're only attaching properties to an empty object literal, making |
That doesn't guard against someone adding enumerable properties to |
Ok, makes sense. Will change it to use a regular |
Actually, a simpler fix would be to just make |
|
|
Totally! But at least that one is faithfully shimmable :-) You can also use the |
Since this is just a dev only tool, I'm not so sure we really need to support ES3, since most development environments use modern browsers. Having said that, I'll use |
Here https://github.com/leoasis/redux-immutable-state-invariant/blob/master/src/trackForMutations.js#L45 you're using
for..of
on Object.keys, which is an array. Why not a normal for loop? The transpiled output would be much cleaner, and would work on browsers and node versions that don't haveSymbol.iterator
available.The text was updated successfully, but these errors were encountered: