> <i>Javascript doesn’t have integer type but lets you think it has</i><p>Actually, JS has integer typed arrays.<p><pre><code> new Uint8Array([1,100,300])
[1, 100, 44]
new Uint16Array([-1,2,300])
[65535, 2, 300]
new Uint32Array([-1,2,300])
[4294967295, 2, 300]
</code></pre>
Here's the spec:<p><a href="https://www.khronos.org/registry/typedarray/specs/latest/#7" rel="nofollow">https://www.khronos.org/registry/typedarray/specs/latest/#7</a>