tryInvoke (obj, methodName, args) *public
Defined in packages/ember-metal/lib/utils.js:338
Checks to see if the methodName exists on the obj, and if it does, invokes it with the arguments passed. let d = new Date('03/15/2013');
Ember.tryInvoke(d, 'getTime'); // 1363320000000
Ember.tryInvoke(d, 'setFullYear', [2014]); // 1394856000000
Ember.tryInvoke(d, 'noSuchMethod', [2014]); // undefined
Parameters:
obj Object
The object to check for the method
methodName String
T