test

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

Returns a Boolean value that indicates whether or not a pattern exists in a searched string.

Parameters

string

String on which to perform the search.

MDN Reference