In this code :
const ints = [1,45,78,90,23,12,0,-9,3],s = 8; let arr = ints.map(item => item-s/2).filter(item => /*ar