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

each-in: Iterate over array by keys, not by elements #13915

Merged
merged 1 commit into from
Jul 27, 2016
Merged

each-in: Iterate over array by keys, not by elements #13915

merged 1 commit into from
Jul 27, 2016

Conversation

vvscode
Copy link
Contributor

@vvscode vvscode commented Jul 27, 2016

No description provided.

@chancancode
Copy link
Member

Can you add the INUR steps? (Search for the "Pls send halp" issue)

@Serabe
Copy link
Member

Serabe commented Jul 27, 2016

@vvscode here is the issue

this.render(strip`
{{#each-in arr as |key value|}}
[{{key}}:{{value}}]
{{/each-in}}`, { arr: [] });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally, you want to put the target test case first, so I would start with { arr } instead.

each-in: Iterate over array by keys, not by elements

each-in: Iterate over array by keys, not by elements

each-in: Iterate over array by keys, not by elements

each-in: Iterate over array by keys, not by elements

each-in: Iterate over array by keys, not by elements
@rwjblue
Copy link
Member

rwjblue commented Jul 27, 2016

This looks good to me. I'll let @chancancode do a last review pass to make sure the various things he mentioned are good to go...

chancancode added a commit that referenced this pull request Jul 27, 2016
each-in: Iterate over array by keys, not by elements
@chancancode chancancode merged commit b41fd74 into emberjs:master Jul 27, 2016
chancancode added a commit that referenced this pull request Jul 27, 2016
@vvscode vvscode deleted the change-itarate-order branch July 27, 2016 23:34
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.

4 participants