MCPcopy Index your code
hub / github.com/csev/py4e / isBefore

Function isBefore

code/gmane/Chart.bundle.js:3451–3461  ·  view source on GitHub ↗
(input, units)

Source from the content-addressed store, hash-verified

3449 }
3450
3451 function isBefore (input, units) {
3452 var inputMs;
3453 units = normalizeUnits(typeof units !== 'undefined' ? units : 'millisecond');
3454 if (units === 'millisecond') {
3455 input = isMoment(input) ? input : local__createLocal(input);
3456 return +this < +input;
3457 } else {
3458 inputMs = isMoment(input) ? +input : +local__createLocal(input);
3459 return +this.clone().endOf(units) < inputMs;
3460 }
3461 }
3462
3463 function isBetween (from, to, units) {
3464 return this.isAfter(from, units) && this.isBefore(to, units);

Callers

nothing calls this directly

Calls 4

normalizeUnitsFunction · 0.85
isMomentFunction · 0.85
local__createLocalFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected