In es5, you can use indexOf to get the index of one item in an array. In es6, you can use findIndex(), which is more prowful:.
確定! 回上一頁