string includes
Check if the string includes the given text.
let title = 'Section introduction';
title.includes('intro') // Returns true
copy
Check if the string includes the given text.
let title = 'Section introduction';
title.includes('intro') // Returns true
copy