Filter list from another list typescript
You can filter list items from another list in typescript. You have to use filter and includes method to remove the list items which you want to remove from existing array.
Remove list items from another array list in typescript
var arr = ['google.com','facebook.com','w3codegenerator.com'], brr = ['facebook.com', 'google.com'], res = arr.filter(f => !brr.includes(f)); console.log(res);
This code snippet will help you to remove a list of items from another array list using typescript.