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