Given two arrays of the same length, how can one sync up their indices based on a shared property?
Example data:
let array1 = [{id: 123, ...}, {id: 456