Observable#getProperties()

getProperties (list) Objectpublic

Defined in packages/ember-runtime/lib/mixins/observable.js:143

To get the values of multiple properties at once, call getProperties with a list of strings or an array:

record.getProperties('firstName', 'lastName', 'zipCode');
// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }

is equivalent to:

record.getProperties(['firstName', 'lastName', 'zipCode']);
// { firstName: 'John', lastName: 'Doe', zipCode: '10011' }

Parameters:

list String...|Array
of keys to get

Returns:

Object
doc_EmberJs
2016-11-30 16:52:43
Comments
Leave a Comment

Please login to continue.