Function rank

  • Returns the 'best' value seen so far as determined by a ranking function. This is similar to min/max but usable for objects.

    Type Parameters

    • In

    Parameters

    Returns ((value: In) => undefined | In)

      • (value): undefined | In
      • Parameters

        Returns undefined | In