Prelude API
    Preparing search index...

    Variable productConst

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

    Calculates the product of all numbers in an iterable. Multiplies all elements together, starting with 1.

    Type Declaration

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

        • values: Iterable<number>

        Returns number

        The product of all elements in the iterable

    G.pipe(
    G.range(1, 5),
    G.product
    ) // 120 (1*2*3*4*5)