📜  在 javascipt 中过滤 - Javascript 代码示例

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

代码示例1
const numbers = [5, 13, 7, 30, 5, 2, 19];
const bigNumbers = numbers.filter(number => number > 20);
console.log(bigNumbers);
//Output: [30]