Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RepeatIterator<T>

An iterator which repeats a value a specified number of times.

Type parameters

  • T

Hierarchy

  • RepeatIterator

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a new repeat iterator.

    Parameters

    • value: T

      The value to repeat.

    • count: number

      The number of times to repeat the value.

    Returns RepeatIterator

Properties

Private _count

_count: number

Private _value

_value: T

Methods

clone

iter

next

  • next(): T | undefined
  • Get the next value from the iterator.

    Returns T | undefined

    The next value from the iterator, or undefined.

Generated using TypeDoc