Skip to content
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

Merged
merged 6 commits into from
May 19, 2015
Merged

Completing forEachOf #705

merged 6 commits into from
May 19, 2015

Conversation

aearly
Copy link
Collaborator

@aearly aearly commented Jan 20, 2015

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.

@dominicbarnes
Copy link

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) {

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() ?

Copy link
Collaborator Author

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...

@beaugunderson
Copy link
Collaborator

Oh oops, I misread. Totally fine then. :)

@mjhasbach
Copy link

+1

@willfrew
Copy link

+1

@felipou
Copy link

felipou commented May 6, 2015

+1 (when will github add issue voting?)

aearly added a commit that referenced this pull request May 19, 2015
Completing forEachOf.  Also closes #168 and #321
@aearly aearly merged commit 57cf750 into caolan:master May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants