📅  最后修改于: 2022-03-11 15:03:56.643000             🧑  作者: Mango
代码示例1
var arr1 = [-200, -163, -26, -4, 0, 7, 76];
var evens = arr1.filter(function(x) {
return x % 2 === 0;
})
console.log(evens);