Enumerable#filter()

filter (callback, target) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:374 Returns an array with all of the items in the enumeration that the passed function returns true for. This method corresponds to filter() defined in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enum

Enumerable#every()

every (callback, target) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:556 Returns true if the passed function returns true for every item in the enumeration. This corresponds with the every() method in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enumerable is the enume

Enumerable#filterBy()

filterBy (key, value) Arraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:448 Returns an array with just the items with the matched property. You can pass an optional second argument with the target value. Otherwise this will match any property that evaluates to true. Parameters: key String the property to test value [*] optional value to test against. Returns: Array filtered array

Enumerable#enumerableContentDidChange()

enumerableContentDidChange (removing, adding) private Defined in packages/ember-runtime/lib/mixins/enumerable.js:992 Invoke this method when the contents of your enumerable has changed. This will notify any observers watching for content changes. If you are implementing an ordered enumerable (such as an array), also pass the start and end values where the content changed so that it can be used to notify range observers. Parameters: removing Ember.Enumerable|Number An enumerable of the

Enumerable#compact()

compactArraypublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:774 Returns a copy of the array with all null and undefined elements removed. let arr = ['a', null, 'c', undefined]; arr.compact(); // ['a', 'c'] Returns: Array the array without null and undefined elements.

Enumerable#any()

any (callback, target) Booleanpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:611 Returns true if the passed function returns true for any item in the enumeration. This corresponds with the some() method in JavaScript 1.6. The callback method you provide should have the following signature (all parameters are optional): function(item, index, enumerable); item is the current item in the iteration. index is the current index in the iteration. enumerable is the enumerable

Enumerable#contains()

contains (obj) Booleandeprecatedpublic Defined in packages/ember-runtime/lib/mixins/enumerable.js:217 Use Enumerable#includes instead. See http://emberjs.com/deprecations/v2.x#toc_enumerable-contains Returns true if the passed object can be found in the receiver. The default version will iterate through the enumerable until the object is found. You may want to override this with a more efficient version. let arr = ['a', 'b', 'c']; arr.contains('a'); // true arr.contains('z'); // false

EngineInstance#unregister()

unregister (fullName) public Inherited from RegistryProxyMixin but overwritten in packages/ember-application/lib/system/engine-instance.js:118 Unregister a factory. Overrides RegistryProxy#unregister in order to clear any cached instances of the unregistered factory. Parameters: fullName String

Enumerable#addEnumerableObserver()

addEnumerableObserver (target, opts) private Defined in packages/ember-runtime/lib/mixins/enumerable.js:869 Registers an enumerable observer. Must implement Ember.EnumerableObserver mixin. Parameters: target Object opts [Object] Returns: this

Enumerable

Ember.Enumerable Class PRIVATE Defined in: packages/ember-runtime/lib/mixins/enumerable.js:62 Module: ember-runtime This mixin defines the common interface implemented by enumerable objects in Ember. Most of these methods follow the standard Array iteration API defined up to JavaScript 1.8 (excluding language-specific features that cannot be emulated in older versions of JavaScript). This mixin is applied automatically to the Array class on page load, so you can use any of these methods on