CatTail
7/3/2014 - 10:07 AM

handy operator to check if result is -1

handy operator to check if result is -1

var isMatch = ~'this is a text'.indexOf('IS');