So I have 2 arrays of objects, it looks like this
    this.balanceCodes = [
        { ID: 1, StringValue: "dummy" },
        { ID: 2, StringValue: "data" }
    ];
    this.allCodes = [
        { ID: 1, StringValue: "dummy", Color: "red", Order: "low" },
        { ID: 2, StringValue: "data", Color: "green", Order: "medium" },
        { ID: 3, StringValue: "extra", Color: "black", Order: "low" },
        { ID: 4, StringValue: "options", Color: "grey", Order: "high" }
    ];
I want to filter out the objects that are in this.balanceCodes (based on ID)
So the desired result would be:
    this.result = [
        { ID: 3, StringValue: "extra", Color: "black", Order: "low" },
        { ID: 4, StringValue: "options", Color: "grey", Order: "high" }
    ];
how can I achieve this? I know I can easily filter out an object, but how can I do this for an entire array of objects?
I'm allowed to use Lodash.
 
     
     
    