@compwright/is-upper-case
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

@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

Package Sidebar

Install

npm i @compwright/is-upper-case

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

4.01 kB

Total Files

5

Last publish

Collaborators

  • compwright