• Creates an event processor that sends the values of incoming events.

    Events are valued by provided value function. The null, undefined, and false values are dropped.

    Type Parameters

    • TEvent extends any[]

      Incoming event type.

    • TValue

      Event value type.

    Parameters

    • valueOf: ((this, ...event) => undefined | null | false | TValue)

      Event value detector function. Accepts incoming event as parameters and returns either its value, or false/null/undefined to ignore it.

        • (this, ...event): undefined | null | false | TValue
        • Parameters

          • this: void
          • Rest ...event: TEvent

          Returns undefined | null | false | TValue

    Returns ((this, input) => OnEvent<[TValue]>)

    New event processor.

Generated using TypeDoc