审查视图

public/assets/libs/moment/src/lib/utils/abs-round.js 167 字节
景龙 authored
1 2 3 4 5 6 7
export default function absRound (number) {
    if (number < 0) {
        return Math.round(-1 * number) * -1;
    } else {
        return Math.round(number);
    }
}