mardi 26 avril 2016

AngularJS: if(obj) vs if(obj!==null & angular.isDefined(obj))

Which is better way to compare the definition of an object? if(obj!==null & angular.isDefined(obj) or if(obj)?

Would love to know the use and abuse of both methods.

Aucun commentaire:

Enregistrer un commentaire