Returns whether the given text includes the comparison string
Optional
the source string to check
the target string to compare
whether the given text includes the comparison string
David Hsing
includes('foobar', 'foo'); // true Copy
includes('foobar', 'foo'); // true
Returns whether the given text includes the comparison string