How to filter list in typescript