JSFiddle - React, Tailwind, and code Playground
by fristyr
JavaScript
let result = []
const array1 = []
const array = [46, -45, 26, -17, -32, -19, -43, -18, 16, -28, 17, -40, 42, -32, -36, -39, 35, 43,
-34, 47, 9, -23, -26, 0, 19, 48, -3, -38, -26, -29, -1, -10, 24, -36, 10, 42, -34, 24, 2, 33, -13, -42, -2, 40,
38, 11, -46, -13, -41, 1]
result = array.filter(hiden)
console.log(`Реузльтат: ${result}`)
function hiden (element, index, array) {
if((index===20)||(index===32)||(index===37)) {
return element
}
}