1. Home
  2. Javascript
  3. String includes

Check if the string includes the given text.

#javascript#string#es6
let title = 'Section introduction';
title.includes('intro') // Returns true
copy
Full Javascript cheatsheet