Function minimums

  • Find smallest values.

    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 T[]

    n smallest values in ascending order

Generated using TypeDoc