Skip to main content

Function: hasAtLeastOneKeyInMap()

hasAtLeastOneKeyInMap<T>(map: ReadonlyMap<T, any>, keys: readonly T[]): boolean

Checks whether any of the keys are in the map

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDescription
mapReadonlyMap<T, any>The map to check
keysreadonly T[]The keys to find in the map

Returns

boolean

true if at least one of the keys is in the map, false otherwise.

Defined in

hasAtLeastOneKeyInMap.ts:7