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

Function Moment

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

Source from the content-addressed store, hash-verified

254
255 // Moment prototype object
256 function Moment(config) {
257 copyConfig(this, config);
258 this._d = new Date(config._d != null ? config._d.getTime() : NaN);
259 if (!this.isValid()) {
260 this._d = new Date(NaN);
261 }
262 // Prevent infinite loop in case updateOffset creates new moment
263 // objects.
264 if (updateInProgress === false) {
265 updateInProgress = true;
266 hooks.updateOffset(this);
267 updateInProgress = false;
268 }
269 }
270
271 function isMoment(obj) {
272 return (

Callers

nothing calls this directly

Calls 1

copyConfigFunction · 0.85

Tested by

no test coverage detected