Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Set

intersect(set)

Description:

Returns a new Set that contains only the values which are in this Set and that are also in the given Set.

Parameters:

name type description
set Phaser.Structs.Set

The Set to intersect this set with.

Returns:
Description:

The result of the intersection, as a new Set.

Since: 3.0.0
Source: src/structs/Set.js (Line 357)