I've an object and the array as shown below and I wanted to remove all the properties of the object except those listed in the array. Can someone help me with a good lodash function to do this.

```
object : {A:1,B:2,C:3,D:4} 
array: [{type:B,value:xyz,order:1},{type:D,value:abc,order:0}]

I want the object to be {B:2,D:4} after the operation

```