Searched refs:smallestDiff (Results 1 – 1 of 1) sorted by relevance
281 let smallestDiff = Math.abs(target - array[0]); variable285 if (Math.abs(target - elem) < smallestDiff) {287 smallestDiff = Math.abs(target - elem);