@compwright/is-upper-case
v2.1.0
Published
Fork of is-upper-case with added locale support
Downloads
5
Maintainers
Readme
@compwright/is-upper-case
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