hyphen-to-camel.js 224 B

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