Checks if a variable contains a value.
Returs false for null, undefined, or a zero-length strng, '',
otherwise returns true.
(Stricter than 'isDefined' because it also returns false for '',
though it stil returns true for otherwise 'falsey' values 0 and false.)
// value - the value to check
// { boolean } - false if undefined, null, or '', otherwise true
'hasValue' utility function
Checks if a variable contains a value. Returs false for null, undefined, or a zero-length strng, '', otherwise returns true. (Stricter than 'isDefined' because it also returns false for '', though it stil returns true for otherwise 'falsey' values 0 and false.)
// value - the value to check // { boolean } - false if undefined, null, or '', otherwise true