Create a function that returns the indices of all occurrences of an item in the array.
getIndices([1, 5, 5, 2, 7], 7) ➞ [4] getIndices([1, 5, 5, 2, 7], 5) ➞ [1, 2] getIndices([1, 5, 5, 2, 7], 8) ➞ []
[]