Skip to content

filterSet

filterSet<T>(set, filterFunction): Set<T>

Defined in: utils/set.ts:7

Filters a Set based on the provided filter function.

T

Set<T>

The original Set to filter.

(item) => boolean

The function used to filter the Set.

Set<T>

A new Set containing only the elements that satisfy the filter function.