单项选择题

用于返回指定元素在数组中第一次出现的索引的方法是()

A.lastIndexOf()
B.shift()
C.indexOf()
D.unshift()