2.1.0 • Published 3 years ago

@compwright/is-upper-case v2.1.0

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

@compwright/is-upper-case

Build status Dependency Status Download Status Sponsor on GitHub

Check if a string is upper case.

Forked from blakeembrey/is-upper-case, with the following improvements:

  • Removed unnecessary dependencies
  • Added locale support

Installation

npm install @compwright/is-upper-case --save

Usage

const isUpperCase = require('@compwright/is-upper-case')

isUpperCase('STRING') // true
isUpperCase('String') // false
isUpperCase('string') // false

// Returns undefined for non-strings
isUpperCase(null) // undefined

Locale support:

isUpperCase('STRİNG', 'tr') // true

Typings

Includes a TypeScript definition.

License

MIT

2.1.0

3 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago