Prelude API
    Preparing search index...

    Variable minConst

    min: (values: Iterable<number>) => number = ...

    Finds the minimum value in a collection of numbers.

    Type Declaration

      • (values: Iterable<number>): number
      • Parameters

        • values: Iterable<number>

        Returns number

        The minimum value found or +Infinity if the collection is empty

    G.pipe(
    [5, 3, 9, 1, 7],
    G.min
    ) // 1

    G.pipe(
    [], // empty array
    G.min
    ) // +Infinity