@Cards-TS
    Preparing search index...

    Function distinct

    • Function to be used with filter that checks that the current item is not equal to any previous item

      Type Parameters

      • T extends { equals: (t: T) => boolean }

      Parameters

      • value: T

        the current value

      • index: number

        the index of the current value

      • arr: T[]

        the array

      Returns boolean