is-capitalized
v1.0.0
Published
Checks if an input string is a capitalized or not.
Downloads
96,006
Maintainers
Readme
is-capitalized
Checks if an input string is a capitalized or not.
Installation
npm install --save is-capital
Usage
var isCapitalized = require('is-capitalized')
isCapitalized('Aaa') // true
isCapitalized('Bbb') // true
isCapitalized('Ccc') // true
isCapitalized('A') // true
isCapitalized('B') // true
isCapitalized('C') // true
isCapitalized('a') // false
isCapitalized('b') // false
isCapitalized('c') // false
// edgecase
isCapitalized('AAA') // true
isCapitalized('BBB') // true
isCapitalized('CCC') // true
var strict = true
isCapitalized('AAA', strict) // false
isCapitalized('BBB', strict) // false
isCapitalized('CCC', strict) // false
License
MIT