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

Function getPrioritizedUnits

static/plugins/chart.js/Chart.bundle.js:15235–15244  ·  view source on GitHub ↗
(unitsObj)

Source from the content-addressed store, hash-verified

15233 }
15234
15235 function getPrioritizedUnits(unitsObj) {
15236 var units = [];
15237 for (var u in unitsObj) {
15238 units.push({unit: u, priority: priorities[u]});
15239 }
15240 units.sort(function (a, b) {
15241 return a.priority - b.priority;
15242 });
15243 return units;
15244 }
15245
15246 function zeroFill(number, targetLength, forceSign) {
15247 var absNumber = '' + Math.abs(number),

Callers 1

stringSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected