Umi — API References - v1.3.0
    Preparing search index...

    Function uniqueBy

    • Deduplicates an array by the provided function.

      Type Parameters

      • T

      Parameters

      • array: T[]
      • fn: (a: T, b: T) => boolean

      Returns T[]