Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Set

union(set)

Description:

Returns a new Set containing all values that are either in this Set or in the Set provided as an argument.

Parameters:

name type description
set Phaser.Structs.Set

The Set to perform the union with.

Returns:
Description:

A new Set containing all the values in this Set and the Set provided as an argument.

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