📌  相关文章
📜  javascript 数组过滤练习 - Javascript 代码示例

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

代码示例1
function fiveAndGreaterOnly(arr) {
  return arr.filter(greater => greater>5);
}
// test
console.log(fiveAndGreaterOnly([3, 6, 8, 2])); /// [6, 8]