Create a method that takes an array of integers and returns the smallest number in the set.
findSmallestNum([34, 15, 88, 2]) ➞ 2 findSmallestNum([34, -345, -1, 100]) ➞ -345 findSmallestNum([7, 7, 7]) ➞ 7