title: How to get objects in between two selected objects from Json array?
body: <pre><code>var allUsers = [{id:1},{id:2},{id:3},{id:4},{id:5}]
  var  selectedUsers = [{id:1},{id:4}]
  </code></pre>
  
  <p>How would I return this?</p>
  
  <pre><code>var remainingUsers = [{id:1},{id:2},{id:3},{id:4}]
  </code></pre>