function getNearNum(i,n,len) { const left=Math.max(0,i-(n>>1)); const right=Math.min(left+n,len) return [left,right] }