📅  最后修改于: 2022-03-11 15:03:15.738000             🧑  作者: Mango
// filter takes an array and function as argumentfunction
filter(arr, filterFunc) {
const filterArr = []; // empty array
// loop though array
for(let i=0;i