Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo: computed('modelA', 'baz.id', function() {
- return this.get('modelA').filter((a) => {
- return a.get('modelB').filter((b) => {
- let userId = b.get('modelC.id');
- let bazId = this.get('baz.id');
- if (userId === bazId) {
- return b;
- }
- })
- });
- }),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement