• Find the first element in this set which satisfies 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 searched.

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

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

          Returns boolean

    Returns any

    The first element in the set which satisfies the test criterion, or undefined.

    See

    Array#find