Web features explorer

String includes()

Widely available since 2018-03-30
Tags: javascript Groups: JavaScript > Primitive types > Strings

The includes() method of strings returns whether a search string appears within the string.

Learning resources on MDN

Browser support (view on caniuse.com)

Specifications