I was browsing this thread and noticed this javascript code:
if (/yes/i.test(str))
so to test if a string contains a substring, we can use such test
method, i
here just means ignore case
.
I was browsing this thread and noticed this javascript code:
if (/yes/i.test(str))
so to test if a string contains a substring, we can use such test
method, i
here just means ignore case
.