contains

fun Iterable<String>.contains(element: String, ignoreCase: Boolean = false): Boolean

Check if a String-Iterable contains a specific element with the option to ignore case-sensitivity.

Return

whether the Iterable contains such an element or not