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

    Parameters

    • test: ((arg0, arg1, arg2) => boolean)

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

        • (arg0, arg1, arg2): boolean
        • Parameters

          • arg0: any
          • arg1: number
          • arg2: Set<any>

          Returns boolean

    Returns Set<any>

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

    See

    Array#filter