Split Camel Case - Node.js String

Node.js examples for String:Case

Description

Split Camel Case

Demo Code


splitCamelCase: function (str) {
  return str.replace(/([a-z](?=[A-Z]))/g, '$1 ');
},

Related Tutorials