SyntaxFix
Write A Post
Hire A Developer
Questions
With the help of regular expression also we can achieve.
(/keyword/i).test(source)
/i is for ignore case. If not necessary we can ignore and test for NOT case sensitive match like
/i
(/keyword/).test(source)