-
-
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
[DOC] add code example for EmberArray reject #18503
Conversation
@@ -278,7 +278,7 @@ const ArrayMixin = Mixin.create(Enumerable, { | |||
|
|||
```javascript | |||
let peopleToMoon = ['Armstrong', 'Aldrin']; | |||
|
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.
Sorry for the noise, my editor removed the whitespace in this file.
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.
It's helpful, because those whitespaces shouldn't be there in the first place!
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.
Left an inline ask
@@ -278,7 +278,7 @@ const ArrayMixin = Mixin.create(Enumerable, { | |||
|
|||
```javascript | |||
let peopleToMoon = ['Armstrong', 'Aldrin']; | |||
|
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.
It's helpful, because those whitespaces shouldn't be there in the first place!
Format array with one item per line Co-Authored-By: Ricardo Mendes <[email protected]>
]; | ||
const nonFruits = food.reject(function(thing) { | ||
return thing.isFruit; | ||
}); // [{food: 'beans', isFruit: false}] |
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.
This should be bread
not beans
right?
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.
I suppose to be consistent with my other pull requests, yes. 🍞
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.
Ah sorry, I see my mistake now. I will fix it.
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.
Fixed here ed2fe07
part of #18228