cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

abs.js (484B)


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