some
Import from @varavel/vdl-plugin-sdk/utils/maps.
Tests whether at least one entry in a Map satisfies the provided predicate function.
This function iterates through the entries of the Map and checks if the predicate function returns true for at least one entry. It returns true if any entry satisfies the predicate, and false otherwise.
Type Parameters
| Type Parameter | Description |
|---|---|
K |
The type of keys in the Map. |
V |
The type of values in the Map. |
Parameters
| Parameter | Type | Description |
|---|---|---|
map |
Map\<K, V> |
The Map to test. |
doesMatch |
(value, key, map) => boolean |
A predicate function that tests each entry. |
Returns
boolean
true if at least one entry satisfies the predicate, false otherwise.