Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FnIterator<T>

An iterator for an iterator-like function.

Type parameters

  • T

Hierarchy

  • FnIterator

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a new function iterator.

    Parameters

    • fn: function

      The iterator-like function of interest.

        • (): T | undefined
        • Returns T | undefined

    Returns FnIterator

Properties

Private _fn

_fn: function

Type declaration

    • (): T | undefined
    • Returns T | undefined

Methods

clone

iter

  • Get an iterator over the object's values.

    Returns IIterator<T>

    An iterator which yields the object's values.

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