S
Size: a a a
S
D
A
ПП
ПП
М
ЛХ
const removeElement = (array, element) => array.splice(array.indexOf(element), 1)
ПП
ПП
ЛХ
const removeElement = (array, index) => array.splice(index, 1)
ПП
const removeElement = (array, index) => array.splice(index, 1)
ПП
М
ЛХ
ПП
М
ЛХ
js
const indexToDelete = [1, 2]
let array = ['a', 'b', 'c']
array = array.filter((e, i) => !indexToDelete.includes(i))
console.log(array)
[ 'a' ]
S
S
ПП