1
0

hyphen-to-camel.js 221 B

12345678
  1. 'use strict';
  2. var replace = String.prototype.replace
  3. , re = /-([a-z0-9])/g
  4. , toUpperCase = function (m, a) { return a.toUpperCase(); };
  5. module.exports = function () { return replace.call(this, re, toUpperCase); };