title: Exclude list of IDs from an array list in Java script
body: <p>I have two array one contains the list of ID that I want to remove from the employee array.</p>
  
  <p>What is the best way to do it in Java script? I can use any ES6 syntaxes</p>
  
  <pre><code>{
    "excludeIDArray": [
      1,
      3,
      4
    ]
  }
  
  
  
  {
    "employee": [
      {
        "id": "1",
        "name": "joe"
      },
      {
        "id": "2",
        "name": "john"
      },
      {
        "id": "3",
        "name": "mike"
      },
      {
        "id": "4",
        "name": "alex"
      },
      {
        "id": "5",
        "name": "sean"
      }
    ]
  }
  </code></pre>
  
  <p>I want the output to be an array which looks like</p>
  
  <pre><code>{
    "employee": [
      {
        "id": "2",
        "name": "john"
      },
      {
        "id": "5",
        "name": "sean"
      }
    ]
  }
  </code></pre>