📅  最后修改于: 2022-03-11 15:02:08.350000             🧑  作者: Mango
function fiveAndGreaterOnly(arr) {
return arr.filter(greater => greater>5);
}
// test
console.log(fiveAndGreaterOnly([3, 6, 8, 2])); /// [6, 8]