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

Function createFromConfig

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

Source from the content-addressed store, hash-verified

17266 }
17267
17268 function createFromConfig (config) {
17269 var res = new Moment(checkOverflow(prepareConfig(config)));
17270 if (res._nextDay) {
17271 // Adding is smart enough around DST
17272 res.add(1, 'd');
17273 res._nextDay = undefined;
17274 }
17275
17276 return res;
17277 }
17278
17279 function prepareConfig (config) {
17280 var input = config._i,

Callers 1

createLocalOrUTCFunction · 0.85

Calls 2

checkOverflowFunction · 0.85
prepareConfigFunction · 0.85

Tested by

no test coverage detected