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

Function createFromConfig

tests/test_code/js/moment/moment.js:2926–2935  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

2924 }
2925
2926 function createFromConfig(config) {
2927 var res = new Moment(checkOverflow(prepareConfig(config)));
2928 if (res._nextDay) {
2929 // Adding is smart enough around DST
2930 res.add(1, 'd');
2931 res._nextDay = undefined;
2932 }
2933
2934 return res;
2935 }
2936
2937 function prepareConfig(config) {
2938 var input = config._i,

Callers 1

createLocalOrUTCFunction · 0.85

Calls 3

checkOverflowFunction · 0.85
prepareConfigFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected