Created
July 3, 2014 10:07
-
-
Save CatTail/a29554dc93c8a4dbff7b to your computer and use it in GitHub Desktop.
handy operator to check if result is -1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var isMatch = ~'this is a text'.indexOf('IS'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment