MCPcopy Create free account
hub / github.com/microsoft/SandDance / hyphenateStyleName

Function hyphenateStyleName

docs/external/js/react-dom.development.js:4571–4573  ·  view source on GitHub ↗

* Hyphenates a camelcased CSS property name, for example: * * > hyphenateStyleName('backgroundColor') * < "background-color" * > hyphenateStyleName('MozTransition') * < "-moz-transition" * > hyphenateStyleName('msTransition') * < "-ms-transition" * * As Moderni

(name)

Source from the content-addressed store, hash-verified

4569 */
4570
4571 function hyphenateStyleName(name) {
4572 return name.replace(uppercasePattern, '-$1').toLowerCase().replace(msPattern, '-ms-');
4573 }
4574
4575 var warnValidStyle = function () {};
4576

Callers 1

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected