Function arrayUniqObjectsByProperty

  • Strips the given array of duplicate property values.

    Type Parameters

    • T extends {
          [id: string]: any;
      }

    Parameters

    • array: T[]

      The array with potential duplicates.

    • property: string

      The property to extract for the comparaison.

    • Optional comparator: Function2<T, T, boolean>

      The predicate used to compare each element of the given arrays.

    Returns T[]

    An array where of elements are uniq.

Generated using TypeDoc