MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / configFromObject

Function configFromObject

static/plugins/chart.js/Chart.bundle.js:17255–17266  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

17253 }
17254
17255 function configFromObject(config) {
17256 if (config._d) {
17257 return;
17258 }
17259
17260 var i = normalizeObjectUnits(config._i);
17261 config._a = map([i.year, i.month, i.day || i.date, i.hour, i.minute, i.second, i.millisecond], function (obj) {
17262 return obj && parseInt(obj, 10);
17263 });
17264
17265 configFromArray(config);
17266 }
17267
17268 function createFromConfig (config) {
17269 var res = new Moment(checkOverflow(prepareConfig(config)));

Callers 1

configFromInputFunction · 0.85

Calls 3

normalizeObjectUnitsFunction · 0.85
configFromArrayFunction · 0.85
mapFunction · 0.70

Tested by

no test coverage detected