I have two arrays.
let arr1 = [{id: 1, favorite: false}, {id: 2, favorite: false}, {id: 3, favorite: false}]; let arr2 = [1, 3];
If the id ex