Lodash _.deburr() Method
Last Updated :
03 Nov, 2023
Lodash _.deburr() method is used to convert Latin-1 Supplement and Latin Extended-A letters to basic Latin letters and removing combining diacritical marks.
Syntax:
_.deburr([string='']);
Parameters:
- string: This parameter holds the Latin-1 Supplement and Latin Extended-A letters string.
Return Value:
This method returns the basic Latin letters string.
Example 1: In this example, we are deburring the given string.
Javascript
const _ = require( 'lodash' );
let str1 = _.deburr( "ÀÄÅÆÇÈÉ" );
console.log(str1);
let str2 = _.deburr( "ãäåæçè" );
console.log(str2);
|
Output:
"AAAAeCEE"
"aaaaece"
Example 2: In this example, we are deburring the given string.
Javascript
const _ = require( 'lodash' );
let str1 = _.deburr( "ĜĚĔĶŜ" );
console.log(str1);
let str2 = _.deburr( "ĝęėķś" );
console.log(str2);
|
Output:
"GEEKS"
"geeks"
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...