function findAllOccurrences(arr, target) { const res = [] arr.forEach((item,index)=>{ if(item===target) { res.push(index) } }) return res }
function findAllOccurrences(arr, target) { const res = [] arr.forEach((item,index)=>{ if(item===target) { res.push(index) } }) return res }