@kingjs/string-ex.is-capitalized
v1.0.1
Published
Test if a string is capitalized.
Downloads
16
Readme
@kingjs/string-ex.is-capitalized
Test if a string is capitalized.
Usage
var assert = require('assert');
var IsCapitalized = require('@kingjs/string-ex.is-capitalized');
assert('Foo'[IsCapitalized]() == true);
assert('foo'[IsCapitalized]() == false);
API
isCapitalized(this)
Parameters
this
: The string.
Returns
Returns true if the first character is upper case.
Install
With npm installed, run
$ npm install @kingjs/string-ex.is-capitalized
Source
https://repository.kingjs.net/string-ex/is-capitalized
License
MIT