📜  indexof js mdn - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:00.178000             🧑  作者: Mango

代码示例1
array.indexOf(searchElement, [initialPoint = 0])

// the indexOf() always returns the first index that the element can be found, else it returns -1