includes

fun includes(searchElement: T, fromIndex: Int = definedExternally): Boolean(source)

Determines whether an array includes a certain element, returning true or false as appropriate.

Parameters

searchElement

The element to search for.

fromIndex

The position in this array at which to begin searching for searchElement.