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); } }