var nums = [110, 200, 390, 488, 509];
var base = 220;
var found_index = 0, dist = Math.abs(nums[0] - base);
nums.forEach((e,i)=>{
let new_dist = Math.abs(e - base);
if (new_dist < dist) {
dist = new_dist;
found_index = i;
}
});
console.log('Ответ:', nums[found_index]);