source: node_modules/es-toolkit/dist/map/hasValue.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 303 bytes
Line 
1import { isEqualsSameValueZero } from '../_internal/isEqualsSameValueZero.mjs';
2
3function hasValue(map, searchElement) {
4 for (const value of map.values()) {
5 if (isEqualsSameValueZero(value, searchElement)) {
6 return true;
7 }
8 }
9 return false;
10}
11
12export { hasValue };
Note: See TracBrowser for help on using the repository browser.