If I have an array containing objects, where each object has an id property, I can find an index using:
data.findIndex(x=>x.id === newData.id);
But what if data was an array of array of objects? Is there a nice way of getting the two indexes for this data structure? So data.findIndex
would return i
and j
in some convenient form.