From b110f551f5da283c2f17f42d5a40ad992336b2e6 Mon Sep 17 00:00:00 2001 From: Michael Kaiser-Nyman Date: Sun, 9 Aug 2015 08:35:35 -0700 Subject: [PATCH] remove references to deprecated Ember.Set --- source/object-model/enumerables.md | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/source/object-model/enumerables.md b/source/object-model/enumerables.md index 943072c0d..19159a98c 100644 --- a/source/object-model/enumerables.md +++ b/source/object-model/enumerables.md @@ -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 @@ -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