Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Generators

Index

Methods

disposable

  • disposable<T>(value: T, dispose: DisposeFn<T>): Generator<T, T, void>

filter

  • filter<T>(iterator: Iterator<T, any, undefined>, test: (v: T) => boolean): Generator<T, any, unknown>
  • Type parameters

    • T

    Parameters

    • iterator: Iterator<T, any, undefined>
    • test: (v: T) => boolean
        • (v: T): boolean
        • Parameters

          • v: T

          Returns boolean

    Returns Generator<T, any, unknown>

input

  • input<T>(elt: Inputable<T>): Generator<T, any, unknown>
  • Type parameters

    • T

    Parameters

    • elt: Inputable<T>

    Returns Generator<T, any, unknown>

map

  • map<T, V>(iterator: Iterator<T, any, undefined>, transform: (v: T, index: number) => V): Generator<V, any, unknown>
  • Type parameters

    • T

    • V

    Parameters

    • iterator: Iterator<T, any, undefined>
    • transform: (v: T, index: number) => V
        • (v: T, index: number): V
        • Parameters

          • v: T
          • index: number

          Returns V

    Returns Generator<V, any, unknown>

observe

  • observe<T>(initialize: ChangeFn<T>): Generator<T, any, unknown>

queue

  • queue<T>(initialize: ChangeFn<T>): Generator<T, any, unknown>

range

  • range(start: number, stop?: number, step?: number): Generator<number, any, unknown>
  • Parameters

    • start: number
    • Optional stop: number
    • Optional step: number

    Returns Generator<number, any, unknown>

valueAt

  • valueAt<T>(iterator: Iterator<T, any, undefined>, index: number): T
  • Type parameters

    • T

    Parameters

    • iterator: Iterator<T, any, undefined>
    • index: number

    Returns T

worker

  • worker(source: string): Worker

Generated using TypeDoc