Just like indexOf(), but returns an array of all occurrences.