Function maximumEntries

  • Find largest entries.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • n: number

      number of values

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

    • fm: MapFunction<T, T | U> = null

      map function (v, i, x)

    Returns [number, T][]

    n largest entries in descending order

Generated using TypeDoc