tableau de filtre angulaire d'objets
let variable = this.someArray.filter((x:any)=>{ return !x.active;})
Envious Earthworm
let variable = this.someArray.filter((x:any)=>{ return !x.active;})
function isBigEnough(value) {
return value >= 10
}
let filtered = [12, 5, 8, 130, 44].filter(isBigEnough)
// filtered is [12, 130, 44]