UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

13 lines (10 loc) 303 B
import { isEqualsSameValueZero } from '../_internal/isEqualsSameValueZero.mjs'; function hasValue(map, searchElement) { for (const value of map.values()) { if (isEqualsSameValueZero(value, searchElement)) { return true; } } return false; } export { hasValue };