Phaser API Documentation

  Version: 

Member of: Phaser.Structs.List

count(property, value)

Description:

Returns the total number of items in the List which have a property matching the given value.

Parameters:

name type description
property string

The property to test on each item.

value *

The value to test the property against.

Returns:
Description:

The total number of matching elements.

Type:
  • number
Since: 3.0.0
Source: src/structs/List.js (Line 309)