function getMin2(n) {
  const array = Array.from(n);
  let min;
  array.forEach((element) => {
    if (min === undefined || element < min) {
      min = element;
    }
  });
  return min;
}
Get the smallest number on an array of numbers
@param {Array} n array of numbers
@example
   getMin([3, 2, 9]) => 2