How to use TypedArray.length() to get the length (number of elements) of a typed array in JavaScript

1 Answer

0 votes
// typedarray.length

var arr = new Uint8Array([8, 11, 2, 233, 15, 51, 11, 2]);

document.write(arr.length + "<br />");


/*
run:

8 

*/

 



answered Aug 14, 2016 by avibootz
...