JavaScript remplace par majuscules
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase());
Careful Camel
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase());