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.

Source

lib/hasAtLeastOneKeyInMap.ts:7