Which array method returns the first index of an element?

Question | May 16, 2017 | nextptr 

Which one of followings is the Array's method that can return the first index of an element (e.g the method should return 0 for 'A' in ['A','B','A','D'])?