Ambil bagian int dari nomor JS

// 11
Math.trunc(11.25)

// 11
Math.trunc(11.99)

// -11
Math.trunc(-11.25)

// 11
Math.trunc(11)
Maksym Maksymenko