-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Why use setAll is the most efficient way to do a setEach? #14022
Comments
@carlesnunez Thank you for your question. Can you reach out to the ember community via one of the links here - http://emberjs.com/community/ Typically we use github for reporting bugs in Ember. StackOverflow, the discussion forum, and Slack are all great ways to address questions. Also using those resources, you'll be more likely to get an answer. |
this may be a doc error, this is more ergonomic not more efficient. |
See http://emberjs.com/api/classes/Ember.Enumerable.html#method_setEach as Stefan mentions the wording could be improved
Perhaps should read
|
As suggested in emberjs#14022, `setEach` is a more ergonomic, not more efficient method. Fixes emberjs#14022
As suggested in emberjs#14022, `setEach` is a more ergonomic, not more efficient method. Fixes emberjs#14022
As suggested in emberjs#14022, `setEach` is a more ergonomic, not more efficient method. Fixes emberjs#14022
Hi, according to ember documentation Ember.enumerable setEach 'is more
efficient than using other methods defined on this helper':
If we drop down to the ember code we can see a function that uses a vanila JS foreach and set method extracted from ember-metal.
Why this is the most 'efficient' way to do that? Its because we use set as a method instead of do item.set?
Thank you
The text was updated successfully, but these errors were encountered: