Skip to content

Documentation / @ripl/utilities / predicateKey

Function: predicateKey()

predicateKey<TValue>(valueA, valueB, key): boolean

Defined in: packages/utilities/src/predicate.ts:7

Tests whether two objects share the same value at a given key.

Type Parameters

Type Parameter
TValue extends Record<PropertyKey, unknown>

Parameters

ParameterType
valueATValue
valueBTValue
keyPropertyKey

Returns

boolean