VOOZH about

URL: https://www.geeksforgeeks.org/javascript/lodash-_-lowercase-method/

⇱ Lodash _.lowerCase() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Lodash _.lowerCase() Method

Last Updated : 20 Oct, 2023

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.

Output:

geeks for geeks
gfg geeks

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

Output:

geeks for geeks
g 4 g geeks geeks
geeks for geeks
Comment