Advertisement
voisovych

notes

Jun 8th, 2020
1,715
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  const currentRow = this.answers.filter(x => x.id === id);
  2.         const withoutCurrentRow = this.answers.filter(x => x.id !== id);
  3.         this.answers = this.answers.filter(x => x.id !== withoutCurrentRow[0].id);
  4.         this.answers.unshift(withoutCurrentRow[0]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement