Class: IntegerIterator

asynciterator~IntegerIterator(optionsopt)

An iterator that enumerates integers in a certain range.

Constructor

new IntegerIterator(optionsopt)

Creates a new IntegerIterator.

Parameters:
Name Type Attributes Description
options object <optional>

Settings of the iterator

Properties
Name Type Attributes Default Description
start integer <optional>
0

The first number to emit

end integer <optional>
Infinity

The last number to emit

step integer <optional>
1

The increment between two numbers

Extends

  • module:asynciterator.AsyncIterator