import { product } from "https://deno.land/x/simplestatistics@v7.7.5/index.js";
The product of an array is the result of multiplying all numbers together, starting using one as the multiplicative identity.
This runs in O(n)
, linear time, with respect to the length of the array.