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

Function pastFuture

tests/test_code/js/moment/moment.js:622–625  ·  view source on GitHub ↗
(diff, output)

Source from the content-addressed store, hash-verified

620 }
621
622 function pastFuture(diff, output) {
623 var format = this._relativeTime[diff > 0 ? 'future' : 'past'];
624 return isFunction(format) ? format(output) : format.replace(/%s/i, output);
625 }
626
627 var aliases = {};
628

Callers

nothing calls this directly

Calls 2

isFunctionFunction · 0.85
formatFunction · 0.85

Tested by

no test coverage detected