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

Function isAfter

tests/test_code/js/moment/moment.js:3759–3770  ·  view source on GitHub ↗
(input, units)

Source from the content-addressed store, hash-verified

3757 }
3758
3759 function isAfter(input, units) {
3760 var localInput = isMoment(input) ? input : createLocal(input);
3761 if (!(this.isValid() && localInput.isValid())) {
3762 return false;
3763 }
3764 units = normalizeUnits(units) || 'millisecond';
3765 if (units === 'millisecond') {
3766 return this.valueOf() > localInput.valueOf();
3767 } else {
3768 return localInput.valueOf() < this.clone().startOf(units).valueOf();
3769 }
3770 }
3771
3772 function isBefore(input, units) {
3773 var localInput = isMoment(input) ? input : createLocal(input);

Callers

nothing calls this directly

Calls 3

isMomentFunction · 0.85
createLocalFunction · 0.85
normalizeUnitsFunction · 0.85

Tested by

no test coverage detected