What is the benefit of angular.isdefined over and above foo === undefined?
angular.isdefined
foo === undefined
I can\'t immediately think of a benefit.
Here is the source:
function isDefined(value) {return typeof value !== 'undefined';}
Obviously the first reason is a lower verbosity, but it also future proofs angular, especially if the function is used internally.