Function uniqueBy

  • Returns a list of objects which have unique values of a specific key.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to process.

    • key: ((obj) => unknown)

      The key to filter by.

        • (obj): unknown
        • Parameters

          • obj: T

          Returns unknown

    Returns T[]

Generated using TypeDoc