I see often come across code in Ember.js that use object destructing to retrieve a function
const { computed } = Ember;
If there is advantage to this pattern instead of calling Ember.computed
directly other than reduce the code? Would this go against encapsulating functions in objects?
Aucun commentaire:
Enregistrer un commentaire