javascript-like typed-array