Create a function that takes an array of more than three numbers and returns the Least Common Multiple (LCM).
lcmOfArray([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) ➞ 2520
lcmOfArray([13, 6, 17, 18, 19, 20, 37]) ➞ 27965340
lcmOfArray([44, 64, 12, 17, 65]) ➞ 2333760
The LCM of an array of numbers is the smallest positive number that is divisible by each of the numbers in the array.