function majeur( {born, sex} ) {
return (born < this.born && sex == this.sex) }
let f = {
sex : "f",
born : 2002,
}
let h = {
sex : "h",
born : 2000,
let hommesMajeur = tabPers.filter(majeur,h),
femmesMajeur = tabPers.filter(majeur,f);
code