You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Group.js
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1199,32 +1199,36 @@ Phaser.Group.prototype.postUpdate = function () {
1199
1199
1200
1200
1201
1201
/**
1202
-
* Allows you to obtain a Phaser.ArrayList of children that return true for the given predicate
1202
+
* Allows you to obtain a Phaser.ArraySet of children that return true for the given predicate
1203
1203
* For example:
1204
+
*
1204
1205
* var healthyList = Group.filter(function(child, index, children) {
1205
1206
* return child.health > 10 ? true : false;
1206
1207
* }, true);
1207
1208
* healthyList.callAll('attack');
1209
+
*
1208
1210
* Note: Currently this will skip any children which are Groups themselves.
1211
+
*
1209
1212
* @method Phaser.Group#filter
1210
1213
* @param {function} predicate - The function that each child will be evaluated against. Each child of the Group will be passed to it as its first parameter, the index as the second, and the entire child array as the third
1211
1214
* @param {boolean} [checkExists=false] - If set only children with exists=true will be passed to the callback, otherwise all children will be passed.
1212
-
* @return {Phaser.ArrayList} Returns an array list containing all the children that the predicate returned true for
1215
+
* @return {Phaser.ArraySet} Returns an array list containing all the children that the predicate returned true for
0 commit comments