Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. foo: computed('modelA', 'baz.id', function() {
  2. return this.get('modelA').filter((a) => {
  3. return a.get('modelB').filter((b) => {
  4. let userId = b.get('modelC.id');
  5. let bazId = this.get('baz.id');
  6.  
  7. if (userId === bazId) {
  8. return b;
  9. }
  10. })
  11. });
  12. }),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement