Site under construction! :3
all(func: function = (el => el))
ξ―
Definitionξ―
(method) func array.all(func: function = (el => el)) -> bool: for element in self: return false if not func(element) return true
Returns true
if all elements of the array return true
given a specified function
, else it returns false
.
Pigeonξ―
> arr = [0, 1, 2, 3, 4] > arr.all(el => el > 3) false
Parametersξ―
func
ξ―
A function
object.
- If no function is declared, it defaults to checking if items are truthy.