/var/www/verywell.gr/server/delivery/node_modules/moment/src/lib/moment
NameSizeModeActions
add-subtract.js18690644editdlrm
calendar.js17370644editdlrm
clone.js980644editdlrm
compare.js23790644editdlrm
constructor.js21060644editdlrm
creation-data.js1920644editdlrm
diff.js23450644editdlrm
format.js23400644editdlrm
from.js6090644editdlrm
get-set.js20410644editdlrm
locale.js9460644editdlrm
min-max.js19220644editdlrm
moment.js6090644editdlrm
now.js820644editdlrm
prototype.js55110644editdlrm
start-end-of.js48190644editdlrm
to-type.js8340644editdlrm
to.js6030644editdlrm
valid.js3640644editdlrm
Edit: /var/www/verywell.gr/server/delivery/node_modules/moment/src/lib/moment/min-max.js (1922B)
import { deprecate } from '../utils/deprecate'; import isArray from '../utils/is-array'; import { createLocal } from '../create/local'; import { createInvalid } from '../create/valid'; export var prototypeMin = deprecate( 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { return other < this ? this : other; } else { return createInvalid(); } } ), prototypeMax = deprecate( 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function () { var other = createLocal.apply(null, arguments); if (this.isValid() && other.isValid()) { return other > this ? this : other; } else { return createInvalid(); } } ); // Pick a moment m from moments so that m[fn](other) is true for all // other. This relies on the function fn to be transitive. // // moments should either be an array of moment objects or an array, whose // first element is an array of moment objects. function pickBy(fn, moments) { var res, i; if (moments.length === 1 && isArray(moments[0])) { moments = moments[0]; } if (!moments.length) { return createLocal(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { if (!moments[i].isValid() || moments[i][fn](res)) { res = moments[i]; } } return res; } // TODO: Use [].sort instead? export function min() { var args = [].slice.call(arguments, 0); return pickBy('isBefore', args); } export function max() { var args = [].slice.call(arguments, 0); return pickBy('isAfter', args); }