is-lower
(v1.0.1)
A simple utility to determine if a given string is in lowercase.
Installation
You can install is-lower
using npm:
npm install is-lower
Usage
To use is-lower
, require it in your application and call it
with the string you want to check. The function will return true
if
the string is entirely in lowercase, and false
otherwise.
const isLowerCase = require('is-lower');
console.log(isLowerCase("Hello"));
console.log(isLowerCase("one"));
console.log(isLowerCase("javascript"));
console.log(isLowerCase("NODEJS"));
console.log(isLowerCase("2024"));
console.log(isLowerCase("hello world"));
console.log(isLowerCase("Hello World"));
console.log(isLowerCase("hello123"));
console.log(isLowerCase("!@#$%"));
console.log(isLowerCase("h3ll0"));
console.log(isLowerCase(""));
String.prototype.toLowerCase = () => false;
console.log(isLowerCase("hello world"));
console.log(isLowerCase("Hello World"));
console.log(isLowerCase({}));
console.log(isLowerCase(-1));