MCPcopy
hub / github.com/julianshapiro/velocity / camelCase

Function camelCase

velocity.js:1503–1511  ·  view source on GitHub ↗

* Camelcase a property name into its JavaScript notation (e.g. * "background-color" ==> "backgroundColor"). Camelcasing is used to * normalize property names between and across calls.

(property)

Source from the content-addressed store, hash-verified

1501 * normalize property names between and across calls.
1502 */
1503 function camelCase(property) {
1504 var fixed = cache$2[property];
1505 if (fixed) {
1506 return fixed;
1507 }
1508 return cache$2[property] = property.replace(/-([a-z])/g, function ($, letter) {
1509 return letter.toUpperCase();
1510 });
1511 }
1512
1513 // Constants
1514 var rxColor6 = /#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})/gi,

Callers 2

expandPropertiesFunction · 0.70
registerSequenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…