TypedArray values() JavaScript

The Javascript TypedArray values() method determines the values of the elements of an array.

Syntax:

array.values() 

Returns:
It returns the values of array elements.

Example:

<!DOCTYPE html>
<html>
<body>
<script>  
var num = new Uint8Array([31,32,34,53,83]);   
var n = num.values();  
document.write(n.next().value + "<br>");
document.write(n.next().value + "<br>");
document.write(n.next().value + "<br>");
document.write(n.next().value + "<br>");
document.write(n.next().value);
</script>
</body>
</html>

Output:

31
32
34
53
83
Please Share