• Filter this set to create a subset of elements which satisfy a certain test criterion.

    Type Parameters

    • T

    Parameters

    • test: (element: T, index: number, set: Set) => boolean

      The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being filtered.

    Returns Set<T>

    A new Set containing only elements which satisfy the test criterion.

    Array#filter