// remove 5 let arr = [1,2,3,4,5,6]; let remove = arr.filter((id) => id !== 5) console.log(remove) // [1,2,3,4,6]