1.0.0 • Published 6 years ago

capitalized v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

capitalized

Returns true if a string’s first letter is uppercase.

Installation

To install using Node.js:

npm i capitalized

API

The module exports a single function.

Parameter

str (string)

Return Values

  • true if str is capitalized
  • false otherwise

Example

const capitalized = require('capitalized')

capitalized('not capitalized') // false
capitalized('Capitalized') // true
capitalized('UPPERCASE') // true