Created
February 12, 2015 20:14
-
-
Save killtheliterate/a404a971c378dc5c965a to your computer and use it in GitHub Desktop.
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 counter = function(wordToCount, findIn) { | |
return findIn.match(new RegExp(wordToCount, 'g')).length; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment