Type alias ProtocolFilterFn<T>

ProtocolFilterFn<T>: ((data) => boolean)

ProtocolFilterFn allows filtering of values that shouldn't be presented to the iterator. ProtocolFilterFn is executed when a value is about to be presented

Type Parameters

  • T = unknown

Type declaration

    • (data): boolean
    • Parameters

      • data: T | null

      Returns boolean

Returns

boolean: true if the value should presented to the iterator