contains

fun contains(targets: Set<String>, sources: Set<String>): Boolean

Returns whether targets contains any element from sources, evaluated at the level on which this method is called.

Return

Boolean true if any element of sources is matched in targets under this level

Since

5.2.0

Parameters

targets

Set of strings to check against

sources

Set of strings to look for