Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "maxWith"

Index

Functions

Functions

maxWith

  • maxWith<T>(this: Sequence<T>, compare: function): T | null
  • Returns the maximum element of the sequence by evaluating the given compare function or null if sequence is empty.

    Type parameters

    • T

    Parameters

    • this: Sequence<T>
    • compare: function
        • (a: T, b: T): number
        • Parameters

          • a: T
          • b: T

          Returns number

    Returns T | null