contains

fun contains(string: String): Boolean(source)

The contains() method returns a boolean indicating whether the given string is in the list.

MDN Reference