MapWithDefault

Ember.MapWithDefault Class PRIVATE Extends: Ember.Map Defined in: packages/ember-metal/lib/map.js:412 Module: ember-metal

Map.create()

createprivatestatic Defined in packages/ember-metal/lib/map.js:253

Map#delete()

delete (key) Booleanprivate Defined in packages/ember-metal/lib/map.js:321 Available since 1.8.0 Removes a value from the map for an associated key. Parameters: key * Returns: Boolean true if an item was removed, false otherwise

Map#get()

get (key) *private Defined in packages/ember-metal/lib/map.js:277 Retrieve the value associated with a given key. Parameters: key * Returns: * the value associated with the key, or `undefined`

Map#has()

has (key) Booleanprivate Defined in packages/ember-metal/lib/map.js:347 Check whether a key is present. Parameters: key * Returns: Boolean true if the item was present, false otherwise

Map#copy()

copyEmber.Mapprivate Defined in packages/ember-metal/lib/map.js:402 Returns: Ember.Map

Map#forEach()

forEach (callback, self) private Defined in packages/ember-metal/lib/map.js:359 Iterate over all the keys and values. Calls the function once for each key, passing in value, key, and the map being iterated over, in that order. The keys are guaranteed to be iterated over in insertion order. Parameters: callback Function self * if passed, the `this` value inside the callback. By default, `this` is the map.

Managing Dependencies

Managing Dependencies As you're developing your Ember app, you'll likely run into common scenarios that aren't addressed by Ember itself, such as authentication or using SASS for your stylesheets. Ember CLI provides a common format called Ember Addons for distributing reusable libraries to solve these problems. Additionally, you may want to make use of front-end dependencies like a CSS framework or a JavaScript datepicker that aren't specific to Ember apps. Ember CLI supports installing these

Map#clear()

clearprivate Defined in packages/ember-metal/lib/map.js:392

Map

Ember.Map Class PRIVATE Defined in: packages/ember-metal/lib/map.js:222 Module: ember-metal A Map stores values indexed by keys. Unlike JavaScript's default Objects, the keys of a Map can be any JavaScript object. Internally, a Map has two data structures: keys: an OrderedSet of all of the existing keys values: a JavaScript Object indexed by the Ember.guidFor(key) When a key/value pair is added for the first time, we add the key to the keys OrderedSet, and create or replace an entry in