Joined November 2013
·

Kumar Harsh

Bangalore, India
·
·

Posted to Convert snake-case to camelCase over 1 year ago

Why do you need the () capturing group? It works without that too:

value.replace(/_\w/g, function(m) {
  return m[1].toUpperCase();
});
Achievements
69 Karma
0 Total ProTip Views