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