js filter语法
<script>
let buf = [10, 110, 20, 120, 30, 130];
let filterBuf = buf.filter(function(n) {
// 返回bool
return n > 100;
})
console.log(filterBuf);
</script>
<script>
let buf = [10, 110, 20, 120, 30, 130];
let filterBuf = buf.filter(function(n) {
// 返回bool
return n > 100;
})
console.log(filterBuf);
</script>