• Returns whether all the given elements are not false

    Parameters

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

      the elements to check

    Returns boolean

    whether all the given elements are not false

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