Function min

  • Returns the smallest element in an iterable. The optional key argument specifies a transform on the elements before comparing them. If the elements in the iterable are objects that implement a custom lt method, this will be called to compare.


    The smallest element in the iterable.


    • iterable: number[]

      The iterable to inspect.

    Returns number

  • Type Parameters

    • T


    • iterable: Iterable<T>
    • Optional key: Predicate<T, any>

    Returns T

Generated using TypeDoc