I have this array:
dataArr: DataCode = [dataObj1, dataObj2, dataObj3, dataObj4, ... ]
And array of id:
idArray:string=["3","5","2","8","4"];
Here is the defenition of DataCode:
export interface DataCode {
userId: string;
codeName: string;
id: string
}
How can I get from array dataArr all objects that has id value as in idArray.