2.1.3 • Published 4 years ago
@compwright/is-lower-case v2.1.3
@compwright/is-lower-case
Check if a string is lower case.
Forked from blakeembrey/is-lower-case, with the following improvements:
- Removed unnecessary dependencies
- Added locale support
Installation
npm install @compwright/is-lower-case --saveUsage
const isLowerCase = require('@compwright/is-lower-case')
isLowerCase('STRING') // false
isLowerCase('String') // false
isLowerCase('string') // true
// Returns undefined for non-strings
isLowerCase(null) // undefinedLocale support:
isLowerCase('STRİNG', 'tr') // falseTypings
Includes a TypeScript definition.
License
MIT