Web features explorer

String includes()

Widely available
Tags: javascript Groups: JavaScript > Primitive types > Strings

The includes() method of strings returns whether a search string appears within the string. To learn more, see String.prototype.includes() at MDN.

Compatibility (view on caniuse.com)

Specifications