function product (array) {
  return array.reduce((prev, curr) => prev * curr, 1)
}
Computes the product of all array elements.
@param {number[]} array Array of factors
@returns {number}            Product of all elements