* Camelcases a hyphenated string, for example: * * > camelize('background-color') * < "backgroundColor" * * @param {string} string * @return {string}
(string)
| 17665 | * @return {string} |
| 17666 | */ |
| 17667 | function camelize(string) { |
| 17668 | return string.replace(_hyphenPattern, function (_, character) { |
| 17669 | return character.toUpperCase(); |
| 17670 | }); |
| 17671 | } |
| 17672 | |
| 17673 | module.exports = camelize; |
| 17674 | },{}],131:[function(_dereq_,module,exports){ |