function findAllOccurrences(arr, target) {
    let newArr = [];
    arr.forEach((el, index)=>{
        //  el == target && newArr.push(index);
        if(el == target){
            newArr.push(index);
        }
    })
    return newArr;
}