// this is the input. need to iterate the tech based name from object
let obj=[
{
name:"Nithesh",
tech:["HTML","CSS","JAVA","JS"],
},
{
name:"hari",
tech:["NodeJS","CSS","React","JS"],
},
{
name:"sathish",
tech:["Angular","CSS","React","HTML"],
}
]
//and output like this. but I tried all ways but code is not working
o/p={
"HTML":["Nithesh","sathish"],
"CSS":["Nithesh","hari", "sathish"],
"JS":["Nithesh","hari"],
"React":["hari", "sathish"],
"NodeJs":["hari"],
"Angular":["sathish"],
"JAVA":["Nithesh"],
}