About Pi Downloads Documentation Plugins Developer Forum Issues

pi.util.Array.count

Summary

Return the number of times given value appers in the array.

Syntax

pi.util.Array.count(array,value)

Usage Example

>>> var list = [3,5,7,9,3,7]
>>> pi.util.Array.count(list,3)
2
>>> pi.util.Array.count(list,5)
0

See Also