JS Math Tricks

Integer Division

let result = ~~(a/b); // double NOT operator forces int casting