Node.js examples for String:Case
Is String Capitalized
String.prototype.isCapitalized = function() { var c = this.charAt(0); return (c === c.toUpperCase() && c !== c.toLowerCase()); };/* w ww. jav a 2 s.c om*/