Sometimes I need to check the value for three conditions at the same time, null, undefined or "". Due to the fact that I did not find any way to do this, I encoded my own and it works.
$scope.isNullOrEmptyOrUndefined = function (value) { if (value === "" || value === null || typeof value === "undefined") { return true; } }
Just wanted to know if there is a better way to do the same.
Thank you very much in advance,
Guillermo
source share