Advertisement
Guest User

Untitled

a guest
Apr 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     this.filterCarts = this.userCarts.filter(
  2.       cart => {
  3.         var out = true;
  4.         if (out === true && this.filter.cefr !== null) {
  5.           out = cart.cefrKey === this.filter.cefr;
  6.         }
  7.         if (out === true && this.filter.typeId !== null) {
  8.           out = cart.typeId === this.filter.typeId;
  9.         }
  10.         if (out === true && this.filter.letter !== null) {
  11.           out = cart.letter === this.filter.letter;
  12.         }
  13.         return out;
  14.       });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement