I have a master list to refer and filter from:
nvMaster: [
{"1": "One"},
{"2": "TWO"},
{"3": "THREE"},
{"4":"FOUR"},
{"5":"FIVE"}
];
I have second array of permitted values form final JSON.
nvPermitted:["1","3","5"];
I need to form a final array like below:
nvFinal: [
{"1": "One"},
{"3": "THREE"},
{"5":"FIVE"}
];
Any help on this is highly appreciated.