Compute Min

Examples Filter
console.log(Math.min(2, 3, 1));
// expected output: 1

console.log(Math.min(-2, -3, -1));
// expected output: -3

var array1 = [2, 3, 1];

console.log(Math.min(...array1));
// expected output: 1
package main

import (
  "fmt"
  "math"
)

func main() {
  fmt.Println(math.Min(1, 2))
}