-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Completing forEachOf #705
Completing forEachOf #705
Conversation
Nice! Would be great to finally see this make it in there! |
@@ -68,6 +68,14 @@ | |||
return memo; | |||
}; | |||
|
|||
var _forEachOf = function (object, iterator) { | |||
for (key in object) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May i ask why you don't use Object.keys() ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No reason, I kept the original implementation. I was focused more on merge conflicts. _keys
would be faster here...
Oh oops, I misread. Totally fine then. :) |
+1 |
+1 |
+1 (when will github add issue voting?) |
This is mostly @dominicbarnes 's work from #168. The last missing piece was documentation, which I added. I also made sure it merges with what is currently on master, and simplified the logic in one place.