Files
2021-08-03 23:30:16 +02:00

8 lines
88 B
JavaScript

const abs = Math.abs;
const value = -5.9
|> abs
|> Math.floor;
expect(value).toBe(5);