Hi Harila...,
Well, it will tell you for certain the value is null or undefined. Empty
values are also accepted. (note, this does not tell you what empty is...)
Best thing you can do yourself if you need something like this is test it
yourself, including the type and not-empty perimeter you need.
for example:
if (typeof someValue === 'string' && somevalue.length > 0 ) {
// I have a valid case
}
or the opposite, to catch invalids..
if (!(typeof someValue === 'string' && somevalue.length > 0) ) {
// I have a inValid case
}
This is way more explicit and because of that it's easier to maintain and
test.
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.