Options
All
  • Public
  • Public/Protected
  • All
Menu

Module min

Index

References

Functions Math

References

Renames and re-exports __type

Math Functions

  • min<T>(array: ArrayLike<T>): T
  • min(array: any): any
  • Computes the minimum value of array. If array is empty or falsey, undefined is returned.

    since

    5.8.0

    example
    min([4, 2, 8, 6]);
    // => 2

    min([]);
    // => undefined

    Type parameters

    • T

    Parameters

    • array: ArrayLike<T>

      The array to iterate over.

    Returns T

    Returns the minimum value.

  • Parameters

    • array: any

    Returns any