Skip to content

Instantly share code, notes, and snippets.

@walison17
Last active July 4, 2019 15:11
Show Gist options
  • Save walison17/b59d11dffd4d60dc97d3e2d92c4d65e5 to your computer and use it in GitHub Desktop.
Save walison17/b59d11dffd4d60dc97d3e2d92c4d65e5 to your computer and use it in GitHub Desktop.
const pluralize = (count, singular, plural = null) => count > 1 ? plural ? plural : `${singular}s` : singular;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment