6 lines
64 B
JavaScript

const abs = Math.abs;
const value = -5.9
|> abs
|> Math.floor;