MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / normalizeObjectUnits

Function normalizeObjectUnits

tests/test_code/js/moment/moment.js:640–655  ·  view source on GitHub ↗
(inputObject)

Source from the content-addressed store, hash-verified

638 }
639
640 function normalizeObjectUnits(inputObject) {
641 var normalizedInput = {},
642 normalizedProp,
643 prop;
644
645 for (prop in inputObject) {
646 if (hasOwnProp(inputObject, prop)) {
647 normalizedProp = normalizeUnits(prop);
648 if (normalizedProp) {
649 normalizedInput[normalizedProp] = inputObject[prop];
650 }
651 }
652 }
653
654 return normalizedInput;
655 }
656
657 var priorities = {};
658

Callers 3

stringSetFunction · 0.85
configFromObjectFunction · 0.85
DurationFunction · 0.85

Calls 2

hasOwnPropFunction · 0.85
normalizeUnitsFunction · 0.85

Tested by

no test coverage detected