Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
remove references to deprecated Ember.Set
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrkn committed Aug 10, 2015
1 parent ce88129 commit d4391f2
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions source/object-model/enumerables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ In Ember.js, an Enumerable is any object that contains a number of child
objects, and which allows you to work with those children using the
[Ember.Enumerable](http://emberjs.com/api/classes/Ember.Enumerable.html) API. The most common
Enumerable in the majority of apps is the native JavaScript array, which
Ember.js extends to conform to the Enumerable interface. Ember also provides
Ember.Set, a data structure that can efficiently answer whether it includes an
object.
Ember.js extends to conform to the Enumerable interface.

By providing a standardized interface for dealing with enumerables,
Ember.js allows you to completely change the way your underlying data is
Expand Down Expand Up @@ -62,24 +60,6 @@ food.forEach(function(item, index) {
// Menu Item 3: Adobo Chicken
```

### Making an Array Copy

You can make a native array copy of any object that implements
`Ember.Enumerable` by calling the `toArray()` method:

```javascript
var states = Ember.Set.create();

states.add("Hawaii");
states.add("California")

states.toArray()
//=> ["Hawaii", "California"]
```

Note that in many enumerables, such as the `Ember.Set` used in this
example, the order of the resulting array is not guaranteed.

### First and Last Objects

All Enumerables expose `firstObject` and `lastObject` properties
Expand Down

0 comments on commit d4391f2

Please sign in to comment.