Function repeat

  • Creates an infinite, lazy iterator that will yield the same value until iteration is stopped.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • toRepeat: T

      The value to yield repeatedly.

    Returns Generator<T, void, unknown>

Generated using TypeDoc