Is there a lodash
function that would transform "répété" => "RÉPÉTÉ"
instead of "REPETE"
as it's done by the uppercase
function?
If not, what's an easy way to perform this in Javascript?
Is there a lodash
function that would transform "répété" => "RÉPÉTÉ"
instead of "REPETE"
as it's done by the uppercase
function?
If not, what's an easy way to perform this in Javascript?
Well you have a native function called "toLocaleUpperCase()"
you can do this:
const str = 'répété';
const ret = str.toLocaleUpperCase();
alert(ret);
You could use toLocaleUpperCase()
const str = 'répété';
const ret = str.toLocaleUpperCase();
console.log(ret);