📜  过滤 javascript 数组 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:04:02.494000             🧑  作者: Mango
代码示例6
var numbers = [1, 3, 6, 8, 11];
var lucky = numbers.filter(function(number) {
return number > 7;
});
// [ 8, 11 ]