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
| Parameter | Type |
|---|---|
valueA | TValue |
valueB | TValue |
key | PropertyKey |
Returns
boolean