hyphenate.js 219 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 "use strict"; exports.__esModule = true; exports.default = hyphenate; var rUpper = /([A-Z])/g; function hyphenate(string) { return string.replace(rUpper, '-$1').toLowerCase(); } module.exports = exports["default"];