Methods
count
ΒΆ
count(arr:
Arr
)
Count all true values.
Source:
stdlib.ngs:1168
arr
Items to look at
Returns
Int
Example
[0,1,2,null,false].count() # 2 (Only 1 and 2 count as true values)