Wednesday, October 22, 2025
HomeLanguagesJavascriptLodash _.lowerCase() Method

Lodash _.lowerCase() Method

Lodash _.lowerCase() method is used to convert the given string to lowercase. The string can be space-separated, dash-separated, or can be separated by underscores.

Syntax:

_.lowerCase([string='']);

Parameters:

  • string: This parameter holds the string that needs to be converted into lowercase.

Return Value:

This method returns the lowercase string.

Example 1: In this example, we are using the _.lowerCase() method for converting the given string into lowercase.

Javascript




const _ = require('lodash');
 
let str1 = _.lowerCase("GEEKS FOR GEEKS");
console.log(str1);
 
let str2 = _.lowerCase("GFG--Geeks");
console.log(str2);


Output:

neveropen for neveropen
gfg neveropen

Example 2: In this example, we are using the _.lowerCase() method for converting the given string into lowercase.

Javascript




const _ = require('lodash');
 
let str1 = _.lowerCase("GEEKS__FOR__GEEKS");
console.log(str1);
 
let str2 = _.lowerCase("G4G--neveropen--GEEKS");
console.log(str2);
 
let str3 = _.lowerCase("GEEKS-----FOR_____Geeks");
console.log(str3);


Output:

neveropen for neveropen
g 4 g neveropen neveropen
neveropen for neveropen
Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS