abc = [1,3,5]
abcMaster= [
{
SL_Id: 1,
SL_Name: "Value1",
},
{
SL_Id: 2,
SL_Name: "Value2",
},
{
SL_Id: 3,
SL_Name: "Value3",
},
{
SL_Id: 4,
SL_Name: "Value4",
},
{
SL_Id: 5,
SL_Name: "Value5",
}
]
slValue : any[];
I want something like this:
slValue =["Value1","Value3","Value5"]
Here i want to get the SL_Name based abc array value. how to achive this.
What I have tried:
how to achieve this in angular typescript/ javascript