Ember.js: Improve documentation of EmberArray

Created on 6 Aug 2019  路  21Comments  路  Source: emberjs/ember.js

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

Documentation Help Wanted

Most helpful comment

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.

All 21 comments

I'd like to take a stab at findBy.

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

I'd like to take invoke and setEach.

Added an example for [] property. #18293

we can stole 馃 some examples from cakephp collection class
image

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

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

Hey @locks. Picked up rejectBy there in https://github.com/emberjs/ember.js/pull/18447. Will try pick off a few others that look light at the minute.

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

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

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

I added an example for reject. https://github.com/emberjs/ember.js/pull/18503

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

@locks Sure, that should make my PRs easier to read! 馃憤
https://github.com/emberjs/ember.js/pull/18507

@locks Would like to pickup reject and rejectBy.

@locks Looks like rejectBy is already done

@Charizard I made one for reject here. 馃槄 https://github.com/emberjs/ember.js/pull/18503

@mcfiredrill Oops! Sorry 馃槗

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

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.

Was this page helpful?
0 / 5 - 0 ratings