@sapphire/utilities
Version:
Common JavaScript utilities for the Sapphire Community
10 lines (8 loc) • 377 B
text/typescript
/**
* Checks whether any of the {@link keys} are in the {@link map}
* @param map The map to check
* @param keys The keys to find in the map
* @returns `true` if at least one of the {@link keys} is in the {@link map}, `false` otherwise.
*/
declare function hasAtLeastOneKeyInMap<T>(map: ReadonlyMap<T, any>, keys: readonly T[]): boolean;
export { hasAtLeastOneKeyInMap };