repl.txt (909B)
1 2 {{alias}}( [options] ) 3 Returns an iterator which generates a sequence of nonpositive even integers. 4 5 If an environment supports Symbol.iterator, the returned iterator is 6 iterable. 7 8 Parameters 9 ---------- 10 options: Object (optional) 11 Function options. 12 13 options.iter: integer (optional) 14 Number of iterations. Default: 4503599627370497. 15 16 Returns 17 ------- 18 iterator: Object 19 Iterator. 20 21 iterator.next(): Function 22 Returns an iterator protocol-compliant object containing the next 23 iterated value (if one exists) and a boolean flag indicating whether the 24 iterator is finished. 25 26 iterator.return( [value] ): Function 27 Finishes an iterator and returns a provided value. 28 29 Examples 30 -------- 31 > var it = {{alias}}(); 32 > var v = it.next().value 33 0 34 > v = it.next().value 35 -2 36 37 See Also 38 -------- 39