Function all

Checks if all elements in the input array are true.

> all([true, true, true])
true

> all([false, true, true])
false
  • Parameters

    • array: boolean[]

      The array of booleans to be evaluated.

    Returns boolean

    Returns true if all elements in array are true, otherwise false.