UNPKG

es-toolkit

Version:

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

17 lines (12 loc) 422 B
'use strict'; Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const isEqualsSameValueZero = require('../_internal/isEqualsSameValueZero.js'); function hasValue(map, searchElement) { for (const value of map.values()) { if (isEqualsSameValueZero.isEqualsSameValueZero(value, searchElement)) { return true; } } return false; } exports.hasValue = hasValue;