Skip to content

Contains

Malexion edited this page Oct 31, 2016 · 1 revision

Check if target string contains the match string

Option to toggle ignoring the letter case, default case sensitive.

console.log('FishStix'.contains('F'));

console.log('FishStix'.contains('f'));

console.log('FishStix'.contains('f', true));
Clone this wiki locally