3277667b82064bb6704ef5957b99e60cf214c53596155b0fb2fccae1239b71c86ccfa46877430ca0381f3ce2b761da405edbb087ada8c9cf551b96cf601370 545 B

123456789101112131415161718
  1. var mathAbs = Math.abs;
  2. export function abs () {
  3. var data = this._data;
  4. this._milliseconds = mathAbs(this._milliseconds);
  5. this._days = mathAbs(this._days);
  6. this._months = mathAbs(this._months);
  7. data.milliseconds = mathAbs(data.milliseconds);
  8. data.seconds = mathAbs(data.seconds);
  9. data.minutes = mathAbs(data.minutes);
  10. data.hours = mathAbs(data.hours);
  11. data.months = mathAbs(data.months);
  12. data.years = mathAbs(data.years);
  13. return this;
  14. }