src/util/string.js
function unDashHyphen (str) {
  return str
    .trim()
    .toLowerCase()
    .replace(/[-_\s]+(.)?/g, function (match, c) {
      return c ? c.toUpperCase() : "";
    });
}
function unDashHyphen (str) {
  return str
    .trim()
    .toLowerCase()
    .replace(/[-_\s]+(.)?/g, function (match, c) {
      return c ? c.toUpperCase() : "";
    });
}
function unDashHyphen ( str ) { return str . trim ( ) . toLowerCase ( ) . replace ( / [-_\s]+(.)? / g , function ( match , c ) { return c ? c . toUpperCase ( ) : "" ; } ) ; }
converts a dash or hypen separated string to camelCase
converts a dash or hypen separated string to camelCase