JavaScript Zastąp na wielki poziom
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase());
Careful Camel
return str.replace(/[-_](.)/g, (_, c) => c.toUpperCase());