Returns the minimum value in a sequence of numbers.

const result = min([1, 2, 3]);
console.log(result); // 1
  • Parameters

    • iterable: Iterable<number>

    Returns undefined | number

    Minimum value in the sequence.