function findAllOccurrences(arr, target) { return arr.map(function(val,index){ if(val===target){ return index &nb...