📜  javascript 在数组中是 int - Javascript 代码示例

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

代码示例1
[1, 2, 3].includes(2);     // true
[1, 2, 3].includes(4);     // false
[1, 2, 3].includes(1, 2);  // false (second parameter is the index position in this array at which to begin searching)