Skip to content

Instantly share code, notes, and snippets.

@cryptoquick
Created September 16, 2013 19:42
Show Gist options
  • Save cryptoquick/6585531 to your computer and use it in GitHub Desktop.
Save cryptoquick/6585531 to your computer and use it in GitHub Desktop.
simplistic isPlural function, returns true if input ends with an 's'
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