NewDash

    Function min

    • Computes the minimum value of array. If array is empty or falsey, undefined is returned.

      Type Parameters

      • T

      Parameters

      • array: ArrayLike<T>

        The array to iterate over.

      Returns T

      Returns the minimum value.

      5.8.0

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

      min([]);
      // => undefined
    • Computes the minimum value of array. If array is empty or falsey, undefined is returned.

      Parameters

      • array: any

        The array to iterate over.

      Returns any

      Returns the minimum value.

      5.8.0

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

      min([]);
      // => undefined
    MMNEPVFCICPMFPCPTTAAATR