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

    Function anyTrue

    • Returns whether any of the given elements is true

      Parameters

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

        the elements to check

      Returns boolean

      whether any of the given elements is true

      David Hsing

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