title: Get closest element from array
body: <p>i have an integer and an array. What i want to do is to search in the array the closest number to that integer, but only for bigger values.
  Ex
  let number = 2
  array = [1,4,5,6]</p>
  <p>the result should be 4</p>
  <p>Any ideas would be appreciated.</p>