Created
September 16, 2013 19:42
-
-
Save cryptoquick/6585531 to your computer and use it in GitHub Desktop.
simplistic isPlural function, returns true if input ends with an 's'
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
inflector.isPlural = function (str) { | |
return !!(/s$/g).exec(str); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment