if I have an array looking as the following:
names: [{
value: 'recordedData',
desc: 'Data'
} {
value: 'recordedNumbers',
desc: 'numbers'
} {
value: 'recordedNames',
desc: 'names'
}]
and another array looking as the following:
displayed: [{
value: 'data',
desc: 'Data'
} {
value: 'numbers',
desc: 'numbers'
}]
I want to filter the first array based on the second array so I would have the following resulted array :
DisplayedNames: [{
value: 'recordedData',
desc: 'Data'
} {
value: 'recordedNumbers',
desc: 'numbers'
}]