how to filter the array but dont change the index in javascript code example
Example: js filter items by index
let newArray = arr.filter(callback(element[, index, [array]])[, thisArg])
let newArray = arr.filter(callback(element[, index, [array]])[, thisArg])