There are two arrays at my disposal.
//1st array
tasks.push({ ID: 1, Address: "---", Latitude: 312313, Longitude: 21312 });
tasks.push({ ID: 3, Address: "---", Latitude: 312313, Longitude: 21312 });
//2nd array
agentTasks.push({ID:2,AgentID: 2,TaskID:1});
My current challenge is to filter the tasks
array to extract only those values that are not present in the agentTasks
array. For instance, task ID 1 is included in agentTasks
, but 3 is not. Therefore, I am interested in retrieving the value associated with ID 3 exclusively. How can this be achieved in Angular/TypeScript?