title: How to get items with approved ids from another array? map() filter() or?
body: <p>Hi I don't know how to get only this items (array with objects) 
  which have approved id? Basically, I'm not sure what to do first... <code>map()</code> then <code>filter()</code> or <code>filter()</code> them <code>map()</code>?</p>
  
  <pre><code>export class AppComponent  {
    name = 'Angular';
    items = [
      { id: 535345, code: '432gdh4356' },
      { id: 634586, code: 'irdtry4567' },
      { id: 124315, code: 'fgdt43104f' },
      { id: 978767, code: 'eaw32134dd' }
    ];
  
    approvedId = [ 535345, 978767 ];
  
    ngOnInit() {
      this.getApprovedItems();
    }
  
    public getApprovedItems(): any {
      // result:
      // [{ id: 535345, code: '432gdh4356' }, { id: 978767, code: 'eaw32134dd' }]
    }
  }
  </code></pre>