kingjs/string-ex.is-upper-case-at
@Test if a character at an index in a string is upper case.
Usage
var assert = require('assert');
var IsUpperCaseAt = require('@kingjs/string-ex.is-upper-case-at');
assert('Foo'[IsUpperCaseAt](0) == true);
assert('Foo'[IsUpperCaseAt](1) == false);
API
isUpperCaseAt(this, index)
Parameters
-
this
: The string. -
index
: The zero based index at which to test casing.
Returns
Returns true if the character at index
is upper case.
Install
With npm installed, run
$ npm install @kingjs/string-ex.is-upper-case-at
Source
https://repository.kingjs.net/string-ex/is-upper-case-at
License
MIT