Skip to content

Instantly share code, notes, and snippets.

@mattLummus
Last active August 29, 2015 14:21
Show Gist options
  • Save mattLummus/2f130fe7dbd6d5b883ef to your computer and use it in GitHub Desktop.
Save mattLummus/2f130fe7dbd6d5b883ef to your computer and use it in GitHub Desktop.
JS capitalize shim
function caps(str) {
return str.replace(str[0], str[0].toUpperCase());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment