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#enumerableContentWillChange()

enumerableContentWillChange (removing, adding) private Defined in packages/ember-runtime/lib/mixins/enumerable.js:939 Invoke this method just before the contents of your enumerable will change. You can either omit the parameters completely or pass the objects to be removed or added if available or just a count. Parameters: removing Ember.Enumerable|Number An enumerable of the objects to be removed or the number of items to be removed. adding Ember.Enumerable|Number An enumerable of

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#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

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#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

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