every
Import from @varavel/vdl-plugin-sdk/utils/sets.
Tests whether all elements in a Set satisfy the provided predicate function.
This function iterates through all elements of the Set and checks if the predicate function returns true for every element. It returns true if the predicate is satisfied for all elements, and false otherwise.
Type Parameters
| Type Parameter | Description |
|---|---|
T |
The type of elements in the Set. |
Parameters
| Parameter | Type | Description |
|---|---|---|
set |
Set\<T> |
The Set to test. |
doesMatch |
(value, value2, set) => boolean |
A predicate function that tests each element. |
Returns
boolean
true if all elements satisfy the predicate, false otherwise.