|
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 | |
|---|
| 1 | import { isEqualsSameValueZero } from '../_internal/isEqualsSameValueZero.mjs';
|
|---|
| 2 |
|
|---|
| 3 | function 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 |
|
|---|
| 12 | export { hasValue };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.