Ember.getProperties()

getProperties (obj, list) Objectpublic

Defined in packages/ember-metal/lib/get_properties.js:3

To get multiple properties at once, call Ember.getProperties with an object followed by a list of strings or an array:

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

is equivalent to:

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

Parameters:

obj Object
list String...|Array
of keys to get

Returns:

Object
doc_EmberJs
2016-11-30 16:51:28
Comments
Leave a Comment

Please login to continue.