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

[DOC] add code example for EmberArray reject #18503

Merged
merged 6 commits into from
Oct 25, 2019

Conversation

mcfiredrill
Copy link
Contributor

part of #18228

@mcfiredrill mcfiredrill changed the title add code example for EmberArray reject [DOC] add code example for EmberArray reject Oct 23, 2019
@@ -278,7 +278,7 @@ const ArrayMixin = Mixin.create(Enumerable, {

```javascript
let peopleToMoon = ['Armstrong', 'Aldrin'];

Copy link
Contributor Author

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.

Copy link
Contributor

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!

locks
locks previously requested changes Oct 23, 2019
Copy link
Contributor

@locks locks left a 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

packages/@ember/-internals/runtime/lib/mixins/array.js Outdated Show resolved Hide resolved
@@ -278,7 +278,7 @@ const ArrayMixin = Mixin.create(Enumerable, {

```javascript
let peopleToMoon = ['Armstrong', 'Aldrin'];

Copy link
Contributor

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!

];
const nonFruits = food.reject(function(thing) {
return thing.isFruit;
}); // [{food: 'beans', isFruit: false}]
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed here ed2fe07

@RobbieTheWagner RobbieTheWagner dismissed locks’s stale review October 25, 2019 14:59

Changes have been completed

@RobbieTheWagner RobbieTheWagner merged commit 74d3095 into emberjs:master Oct 25, 2019
@mcfiredrill mcfiredrill deleted the reject-doc branch October 26, 2019 01:55
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.

3 participants