Sha256: 5a05ac28ce5f1e5e616adb71ebc66de598a05b999f3ce7fa693de391209d7b02

Contents?: true

Size: 484 Bytes

Versions: 19

Compression:

Stored size: 484 Bytes

Contents

var mathAbs = Math.abs;

export function abs() {
    var data = this._data;

    this._milliseconds = mathAbs(this._milliseconds);
    this._days = mathAbs(this._days);
    this._months = mathAbs(this._months);

    data.milliseconds = mathAbs(data.milliseconds);
    data.seconds = mathAbs(data.seconds);
    data.minutes = mathAbs(data.minutes);
    data.hours = mathAbs(data.hours);
    data.months = mathAbs(data.months);
    data.years = mathAbs(data.years);

    return this;
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.15.0 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.14.2 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.14.1 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.14.0 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.13.4 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.13.3 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.13.2 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.13.1 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.13.0 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.7 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.12.0 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.6 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.5 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.4 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.3 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.2 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.1 vendor/moment/src/lib/duration/abs.js
card-mod-date-0.11.0 vendor/moment/src/lib/duration/abs.js