AJSF API reference
    Preparing search index...

    Function hasValue

    • '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

      Parameters

      • value: any

      Returns boolean