Skip to content

Instantly share code, notes, and snippets.

@clarketm
Created Aug 18, 2017
Embed
What would you like to do?
String.prototype.toTitleCase
String.prototype.toTitleCase = function () {
return this[0].toUpperCase() + this.substring(1).toLowerCase();
};
module.exports = String;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment