📅  最后修改于: 2022-03-11 15:03:08.188000             🧑  作者: Mango
function isBigEnough(value) {
return value >= 10
}
let filtered = [12, 5, 8, 130, 44].filter(isBigEnough)
// filtered is [12, 130, 44]