contains

Returns true if token is present, and false otherwise.

MDN Reference