abs-ceil.js 162 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 export default function absCeil (number) { if (number < 0) { return Math.floor(number); } else { return Math.ceil(number); } }