Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 7-Dec-20 1:03am

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900