A function that, when given a target number and an array of numbers, will return the array value closest to the target.