KeyedDiscriminator<T>: ((value, key) => boolean)

A function that takes a value of type T and a key and returns a boolean result. Used for discriminating or filtering values of type T and key in various operations.

Type Parameters

  • T

    The type of the value being discriminated.

Type declaration

    • (value, key): boolean
    • Parameters

      • value: T

        The value to be checked.

      • key: string

        The key to be checked.

      Returns boolean

Returns

  • True if the value satisfies the condition, otherwise false.