let b8 = [3, 14, 15, 92, "6", "5", "hello", 32];
function t8() {
let indexes = [];
b8_res = b8.filter(function (number,index) {
if(number % 2 == 0 && typeof number == 'number'){
}
});
return b8_res;
}
let b8 = [3, 14, 15, 92, "6", "5", "hello", 32];
function t8(arr) {
b8_res = [];
arr.filter((num, index) => {
if(Number.isInteger(num) && num % 2 === 0)
b8_res.push(index);
});
return b8_res;
}
console.log(t8(b8)); // [1, 3, 7]