hyphen-to-camel.js 226 B

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