Is String Capitalized - Node.js String

Node.js examples for String:Case

Description

Is String Capitalized

Demo Code

  String.prototype.isCapitalized = function() {
    var c = this.charAt(0);
    return (c === c.toUpperCase() && c !== c.toLowerCase());
  };/*  w ww. jav  a 2  s.c  om*/

Related Tutorials