MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / valueOf$1

Function valueOf$1

tests/test_code/js/moment/moment.js:5328–5338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5326
5327 // TODO: Use this.as('ms')?
5328 function valueOf$1() {
5329 if (!this.isValid()) {
5330 return NaN;
5331 }
5332 return (
5333 this._milliseconds +
5334 this._days * 864e5 +
5335 (this._months % 12) * 2592e6 +
5336 toInt(this._months / 12) * 31536e6
5337 );
5338 }
5339
5340 function makeAs(alias) {
5341 return function () {

Callers

nothing calls this directly

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected