Javascript – Typescript: How can I return the first object in an array which has a unique key value pair from any objects in a different array?
I want to return the first item in an array of objects that does not have a matching id to any object in a separate array. For example, arrary1 = [ { name: "object1", id: 1, coordinates: undefined} { name:…