const arr = [1, 2, 3, 4, 5]; const removeItem = 3; const newArr = arr.filter(item => item !== removeItem); console.log(newArr); // [1, 2, 4, 5]