📅  最后修改于: 2022-03-11 15:02:37.662000             🧑  作者: Mango
代码示例1
const beasts = ['ant', 'bison', 'camel', 'duck', 'bison'];
console.log(beasts.indexOf('bison'));
// expected output: 1