* Hyphenates a camelcased string, for example: * * > hyphenate('backgroundColor') * < "background-color" * * For CSS style names, use `hyphenateStyleName` instead which works properly * with all vendor prefixes, including `ms`. * * @param {string} string * @return {string}
(string)
| 525 | * @return {string} |
| 526 | */ |
| 527 | function hyphenate(string) { |
| 528 | return string.replace(_uppercasePattern, '-$1').toLowerCase(); |
| 529 | } |
| 530 | |
| 531 | module.exports = hyphenate; |
| 532 | },{}],12:[function(require,module,exports){ |
no outgoing calls
no test coverage detected