Thursday, October 9, 2025
HomeLanguagesJavascriptLodash _.toLower() Method

Lodash _.toLower() Method

The _.toLower() method is used to convert the entire string to lower case. This function does not affect any of the special characters, digits, and the alphabets that are already in the lower case.

Syntax:

_.toLower( [string = ''])

Parameters: This method accepts a single parameter as mentioned above and described below:

  • string: This parameter holds the string to convert.

Return Value: This method returns the lower case string.

Below examples illustrate the Lodash _.toLower() method in JavaScript:

Example 1:

Javascript




// Requiring the lodash library  
const _ = require("lodash");  
       
// Use of _.toLower() method 
console.log(_.toLower('Geeks-For-Geeks')); 
console.log(_.toLower('#--GeeksForGeeks--#')); 


Output:

'neveropen-for-neveropen'
'#--neveropen--#'

Example 2:  

Javascript




// Requiring the lodash library  
const _ = require("lodash");  
  
//  Given string     
let str = "Hello Geeks!";
  
// Use of _.toLower() method 
console.log(_.toLower(str)); 


Output:

'hello 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!
RELATED ARTICLES

Most Popular

Dominic
32342 POSTS0 COMMENTS
Milvus
87 POSTS0 COMMENTS
Nango Kala
6713 POSTS0 COMMENTS
Nicole Veronica
11876 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11937 POSTS0 COMMENTS
Shaida Kate Naidoo
6833 POSTS0 COMMENTS
Ted Musemwa
7092 POSTS0 COMMENTS
Thapelo Manthata
6786 POSTS0 COMMENTS
Umr Jansen
6789 POSTS0 COMMENTS