"use strict";/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @typechecks */var_hyphenPattern=/-(.)/g;/** * Camelcases a hyphenated string, for example: * * > camelize('background-color') * < "backgroundColor" * * @param {string} string * @return {string} */functioncamelize(string){returnstring.replace(_hyphenPattern,function(_,character){returncharacter.toUpperCase();});}module.exports=camelize;