* 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)
| 260 | * @return {string} |
| 261 | */ |
| 262 | function hyphenate(string) { |
| 263 | return string.replace(_uppercasePattern, '-$1').toLowerCase(); |
| 264 | } |
| 265 | |
| 266 | module.exports = hyphenate; |
| 267 | },{}],9:[function(require,module,exports){ |
no outgoing calls
no test coverage detected