menghapus elemen pada indeks tanpa mengubah array asli
const newArray = [
...state.slice(0, action.index),
...state.slice(action.index + 1, state.length)
];
Smiling Skunk