MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / normalizeObjectUnits

Function normalizeObjectUnits

static/plugins/chart.js/Chart.bundle.js:15212–15227  ·  view source on GitHub ↗
(inputObject)

Source from the content-addressed store, hash-verified

15210 }
15211
15212 function normalizeObjectUnits(inputObject) {
15213 var normalizedInput = {},
15214 normalizedProp,
15215 prop;
15216
15217 for (prop in inputObject) {
15218 if (hasOwnProp(inputObject, prop)) {
15219 normalizedProp = normalizeUnits(prop);
15220 if (normalizedProp) {
15221 normalizedInput[normalizedProp] = inputObject[prop];
15222 }
15223 }
15224 }
15225
15226 return normalizedInput;
15227 }
15228
15229 var priorities = {};
15230

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