Q178206

by jun68ykt

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>

JavaScript

let array = [ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j' ];

const deleteIndexList = [ 5, 2, 0, 8, 6 ];

array = array.filter((_, i) => !deleteIndexList.includes(i));

console.log(array);