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

Improve documentation of EmberArray #18228

Closed
26 of 38 tasks
locks opened this issue Aug 6, 2019 · 21 comments
Closed
26 of 38 tasks

Improve documentation of EmberArray #18228

locks opened this issue Aug 6, 2019 · 21 comments

Comments

@locks
Copy link
Contributor

locks commented Aug 6, 2019

Going through http://api.emberjs.com/ember/release/classes/EmberArray, you will notice that some of the entries have minimal documentation and no code sample.
The goal is to review each entry, add code samples where missing, and optionally improve the prose.

Please comment in this thread if you pick one of the entries so it can be assigned to you!

Methods

Properties

@barryofguilder
Copy link

I'd like to take a stab at findBy.

@sdebarros
Copy link
Contributor

I've submitted a code example for every, and would also like to review/add example for filter, filterBy and addArrayObserver.

sukima added a commit to sukima/ember.js that referenced this issue Aug 8, 2019
Prior to this change, the wording was inaccurate. It was describing
filtering not the short circuit behaviour of `any()`.

This change attempts to fix that discrepancy and expand on the example
to include both context option and arrow function use.

Issue emberjs#18228
sukima added a commit to sukima/ember.js that referenced this issue Aug 8, 2019
Prior to this change, the wording was inaccurate. It was describing
filtering not the short circuit behaviour of `any()`.

This change attempts to fix that discrepancy and expand on the example
to include both context option and arrow function use.

Issue emberjs#18228
@mukilane
Copy link
Contributor

I'd like to take invoke and setEach.

@mukilane
Copy link
Contributor

Added an example for [] property. #18293

@flashios09
Copy link

we can stole 🤓 some examples from cakephp collection class
image

brunoocasali added a commit to brunoocasali/ember.js that referenced this issue Aug 28, 2019
Add code examples for `EmberArray.find` method.

Issue emberjs#18228
@mukilane
Copy link
Contributor

mukilane commented Sep 1, 2019

Can we add @readonly tag for properties like firstObject and lastObject ?

@imkathir
Copy link

imkathir commented Sep 2, 2019

@locks I'd like to take map and mapBy methods.

@beegan
Copy link
Contributor

beegan commented Oct 1, 2019

Hey @locks. Picked up rejectBy there in #18447. Will try pick off a few others that look light at the minute.

@beegan
Copy link
Contributor

beegan commented Oct 3, 2019

rejectBy and reduce have been merged if you want to mark them off.

@Frozenfire92
Copy link
Contributor

I'm going to start with forEach, getEach, includes, and indexOf

@vinodhrajamuralidharan
Copy link

@locks - I would like to take forEach, getEach, includes and indexOf

@mcfiredrill
Copy link
Contributor

I added an example for reject. #18503

@mcfiredrill
Copy link
Contributor

Took a stab at isAny and isEvery as well. #18505 #18506

@locks
Copy link
Contributor Author

locks commented Oct 23, 2019

@mcfiredrill can you send the whitespace changes separately? that way I can merge it once and you can rebase your PRs!

@mcfiredrill
Copy link
Contributor

@locks Sure, that should make my PRs easier to read! 👍
#18507

@Charizard
Copy link
Contributor

@locks Would like to pickup reject and rejectBy.

@Charizard
Copy link
Contributor

@locks Looks like rejectBy is already done

@mcfiredrill
Copy link
Contributor

@Charizard I made one for reject here. 😅 #18503

@Charizard
Copy link
Contributor

@mcfiredrill Oops! Sorry 😓

locks added a commit that referenced this issue Oct 26, 2019
[DOC] #18228 Add description and example to EmberArray.getEach documentation
@locks
Copy link
Contributor Author

locks commented Oct 26, 2019

Thank you for the help everyone :) I'm updating the issue at the moment.

@locks
Copy link
Contributor Author

locks commented Oct 26, 2019

Excellent work everyone! Thank you once again for your help in pushing this forward :) Since most of the items are addressed, I'll be closing this issue and opening individual ones which are easier to keep track of.

@locks locks closed this as completed Oct 26, 2019
pzuraq pushed a commit that referenced this issue Nov 7, 2019
[DOC] #18228 Add example to EmberArray.forEach documentation
rwjblue pushed a commit that referenced this issue Nov 22, 2019
[DOC] #18228 Add example to EmberArray.forEach documentation

(cherry picked from commit 5e5de19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests