* Camelcases a hyphenated string, for example: * * > camelize('background-color') * < "backgroundColor" * * @param {string} string * @return {string}
(string)
| 18225 | * @return {string} |
| 18226 | */ |
| 18227 | function camelize(string) { |
| 18228 | return string.replace(_hyphenPattern, function (_, character) { |
| 18229 | return character.toUpperCase(); |
| 18230 | }); |
| 18231 | } |
| 18232 | |
| 18233 | module.exports = camelize; |
| 18234 | },{}],144:[function(_dereq_,module,exports){ |
no outgoing calls
no test coverage detected
searching dependent graphs…