A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/javascript/lodash-_-lowerfirst-method/ below:

Lodash _.lowerFirst() Method - GeeksforGeeks

Lodash _.lowerFirst() Method

Last Updated : 27 Oct, 2023

Lodash _.lowerFirst() method is used to convert the first character of the given string into lowercase characters.

Syntax:
_.lowerFirst([string='']);
Parameters: Return Value:

This method returns the converted string.

Example 1: In this example, we are converting the first letter of the given string into lowercase by the use of the lodash _.lowerFirst() method.

JavaScript
const _ = require('lodash');

let str1 = _.lowerFirst("GEEKS FOR GEEKS");
console.log(str1);

let str2 = _.lowerFirst("GFG--Geeks");
console.log(str2);

Output:

"gEEKS FOR GEEKS"
"gFG--Geeks"

Example 2: In this example, we are converting the first letter of the given string into lowercase by the use of the lodash _.lowerFirst() method.

JavaScript
const _ = require('lodash');

let str1 = _.lowerFirst("GEEKS__FOR__GEEKS");
console.log(str1);

let str2 = _.lowerFirst("G4G--geeks--GEEKS");
console.log(str2);

let str3 = _.lowerFirst("GEEKS-----FOR_____Geeks");
console.log(str3);

Output:

"gEEKS__FOR__GEEKS"
"g4G--geeks--GEEKS"
"gEEKS-----FOR_____Geeks"


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4