MCPcopy
hub / github.com/tdewolff/minify / createFromConfig

Function createFromConfig

_benchmarks/sample_moment.js:3005–3014  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

3003 }
3004
3005 function createFromConfig(config) {
3006 var res = new Moment(checkOverflow(prepareConfig(config)));
3007 if (res._nextDay) {
3008 // Adding is smart enough around DST
3009 res.add(1, 'd');
3010 res._nextDay = undefined;
3011 }
3012
3013 return res;
3014 }
3015
3016 function prepareConfig(config) {
3017 var input = config._i,

Callers 1

createLocalOrUTCFunction · 0.85

Calls 2

prepareConfigFunction · 0.85
checkOverflowFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…