• 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

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