Contains all

Syntax

	$set1.containsAll($set2)

Description

Checks if set1 contains all elements of set2.

Parameters

Name Type Description Mandatory Default
set1 Set A set for which it is to be checked whether all elements from set2 are contained. yes
set2 Set A set for which to check if all elements in set1 are included. yes

Return value

Type: Boolean

true, if all elements from set2 are included in set1.

Examples

Set contains all elements

	list(1, 2, 3, 4).containsAll(list(1, 2))

Output: true

Set contains single elements

	list(1, 2, 3, 4).containsAll(list(1, 2, 5, 6))

Output: false

Set contains none of the elements

	list(1, 2, 3, 4).containsAll(list(5, 6, 7))

Output: false