Array.classPrototype.iterator

Instance of

Function

Return value

/*Iterator*/

Description

Returns an iterator that iterates over the elements the of array.

Example

let arr = [36.6, "Harry", true];
let it = arr.iterator()
while (!((let x <- it.next()) is Iterator.end))
    console.write(x, " ");

Expected output

36.600000 Harry true