Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "minBy"

Index

Functions

Functions

minBy

  • minBy<T, R>(this: Sequence<T>, selector: function): T | null
  • Returns the minimum element by comparing the results of the given selector function for each element of the sequence or null if the sequence is empty.

    Type parameters

    • T

    • R

    Parameters

    • this: Sequence<T>
    • selector: function
        • (value: T): R
        • Parameters

          • value: T

          Returns R

    Returns T | null