source:
node_modules/es-toolkit/dist/map/some.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 191 bytes | |
| Line | |
|---|---|
| 1 | function some(map, doesMatch) { |
| 2 | for (const [key, value] of map) { |
| 3 | if (doesMatch(value, key, map)) { |
| 4 | return true; |
| 5 | } |
| 6 | } |
| 7 | return false; |
| 8 | } |
| 9 | |
| 10 | export { some }; |
Note:
See TracBrowser
for help on using the repository browser.
