1. Home
  2. ›
  3. Javascript
  4. ›
  5. 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