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.

Answers 1
  • Remove list items from another array list in typescript

    var arr = ['','',''],
        brr = ['', ''],
        res = arr.filter(f => !brr.includes(f));

    Output: [""]

    This code snippet will help you to remove a list of items from another array list using typescript.

  • Back to code snippet queries related typescript