LendAndRegret/node_modules/es-toolkit/dist/map/hasValue.mjs
2026-05-02 17:27:43 +08:00

13 lines
303 B
JavaScript

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 };