W3cubDocs

/Ember.js

Ember.MapWithDefault Class

PRIVATE

Extends: Ember.Map

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

Module: ember-metal

copyEmber.MapWithDefaultprivate

Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:467

create (options) Ember.MapWithDefault|Ember.Mapprivatestatic

Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:425

Parameters:

options []
defaultValue [*]

Returns:

Ember.MapWithDefault|Ember.Map
If options are passed, returns `Ember.MapWithDefault` otherwise returns `Ember.Map`

get (key) *private

Inherited from Ember.Map but overwritten in packages/ember-metal/lib/map.js:447

Retrieve the value associated with a given key.

Parameters:

key *

Returns:

*
the value associated with the key, or the default value

© 2017 Yehuda Katz, Tom Dale and Ember.js contributors
Licensed under the MIT License.
http://emberjs.com/api/classes/Ember.MapWithDefault.html