rStats.js v1.3.0
    Preparing search index...

    Function prod

    • Product of the values. Equivalent to R's prod(). 1 for an empty vector.

      Parameters

      Returns number

      prod([1, 2, 3, 4]); // 24