Skip to content

Как удалить элемент из массива по индексу?

const array = [1, 2, 3];
const index = 1;
array.splice(index, 1);
// array == [1, 3]