Pusher<T>: ((this, accept) => boolean)

Type Parameters

  • T

    Iterated elements type.

Type declaration

    • (this, accept): boolean
    • A signature of iterated elements pusher function conforming to push iteration protocol.

      Parameters

      • this: void
      • accept: Acceptor<T>

        A function to push iterated elements to. Accepts iterated element as its only parameter. May return false to stop iteration.

      Returns boolean

      true if further iteration is possible, or false if there is no more elements left to iterate. The latter is possible only when iteration aborted, i.e. accept returned false.

Generated using TypeDoc