Type Parameters

  • T

Hierarchy

  • Array

Methods

Methods

  • Returns a new array with distinct elements, as distinguished by the input function.

    Parameters

    • distinctFunction: ((value, index, array) => string | number)

      A function which returns a property or result by which to distinguish elements in the array.

        • (value, index, array): string | number
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns string | number

    Returns T[]

Generated using TypeDoc