178
rated 0 times
[
184]
[
6]
/ answers: 1 / hits: 27936
/ 12 Years ago, tue, may 22, 2012, 12:00:00
Is there a function in javascript that compares a string and returns a boolean? I found .match but it returns the strings that matched. I was hoping there was something else so that I would have a lesser code in comparing a string. Since I wanted to check if a string has this word and proceed else not.
thanks
More From » javascript