Debian Codegraph @

vendor/static/moment/src/lib/duration/abs.js

raw
1 var mathAbs = Math.abs;
2
3 export 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 }