@yookue/ts-lang-utils
    Preparing search index...

    Function allTrue

    • Returns whether all the given elements are true

      Parameters

      • Optionalvalues: (undefined | null | string | number | boolean)[]

        the elements to check

      Returns boolean

      whether all the given elements are true

      David Hsing

      allTrue([null, undefined]);    // false
      allTrue([null, true]); // false
      allTrue([true, true]); // true