Ember.copy()

copy (obj, deep) Objectpublic Defined in packages/ember-runtime/lib/copy.js:66 Creates a shallow copy of the passed object. A deep copy of the object is returned if the optional deep argument is true. If the passed object implements the Ember.Copyable interface, then this function will delegate to the object's copy() method and return the result. See Ember.Copyable for further details. For primitive values (which are immutable in JavaScript), the passed object is simply returned. Paramete

Ember.debug()

debug (message) public Defined in packages/ember-debug/lib/index.js:60 Display a debug notice. In a production build, this method is defined as an empty function (NOP). Uses of this method in Ember itself are stripped from the ember.prod.js build. Ember.debug('I\'m a debug notice!'); Parameters: message String A debug message to display.

Ember.computed.uniq()

uniq (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:330 A computed property which returns a new array with all the unique elements from one or more dependent arrays. Example let Hamster = Ember.Object.extend({ uniqueFruits: Ember.computed.uniq('fruits') }); let hamster = Hamster.create({ fruits: [ 'banana', 'grape', 'kale', 'banana' ] }); hamster.get('uniqueFruits'); // ['banana', 'grape', 'kale']

Ember.computed.uniqBy()

uniqBy (dependentKey, propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:379 A computed property which returns a new array with all the unique elements from an array, with uniqueness determined by specific key. Example let Hamster = Ember.Object.extend({ uniqueFruits: Ember.computed.uniqBy('fruits', 'id') }); let hamster = Hamster.create({ fruits: [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' },

Ember.controllerFor()

controllerForprivate Defined in packages/ember-routing/lib/system/controller_for.js:6 Finds a controller instance.

Ember.computed.union()

union (propertyKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:426 Alias for Ember.computed.uniq. Parameters: propertyKey String Returns: Ember.ComputedProperty computes a new array with all the unique elements from the dependent array

Ember.computed.setDiff()

setDiff (setAProperty, setBProperty) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:493 A computed property which returns a new array with all the properties from the first dependent array that are not in the second dependent array. Example let Hamster = Ember.Object.extend({ likes: ['banana', 'grape', 'kale'], wants: Ember.computed.setDiff('likes', 'fruits') }); let hamster = Hamster.create({ fruits: [ 'grape', 'kale',

Ember.computed.sum()

sum (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:63 Available since 1.4.0 A computed property that returns the sum of the values in the dependent array. Parameters: dependentKey String Returns: Ember.ComputedProperty computes the sum of all values in the dependentKey's array

Ember.computed.sort()

sort (itemsKey, sortDefinition) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/reduce_computed_macros.js:584 A computed property which returns a new array with all the properties from the first dependent array sorted based on a property or sort function. The callback method you provide should have the following signature: function(itemA, itemB); itemA the first item to compare. itemB the second item to compare. This function should return negative number (e.g

Ember.computed.or()

or (dependentKey) Ember.ComputedPropertypublic Defined in packages/ember-runtime/lib/computed/computed_macros.js:464 A computed property which performs a logical or on the original values for the provided dependent properties. You may pass in more than two properties and even use property brace expansion. The computed property will return the first truthy value or last falsy value just like JavaScript's || operator. Example let Hamster = Ember.Object.extend({ readyForRain: Ember.computed.