I've tried to reproduce the method filter
so far I have got:
function filtre(...[T,x,y]){
let tabPersF = [];
for (let pers of T) {
if (x(...[pers,y])) {
tabPersF.push( pers );
}
}
return tabPersF;
}
How about it?.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…