JavaScript Array Expert
$10-30 USD
착불
I have an array and i want to filter this array by Country and Service
i did the filter by Country but i want also do the same thing by service
this the array :
[
{
"Country":"CHINA",
"details":"V2020",
"Service":"BUSINESS",
},
{
"Country":"CHINA",
"details":"V3030",
"Service":"BUSINESS",
},
{
"Country":"USA",
"details":"Bus-Trip",
"Service":"BUSINESS",
},
{
"Country":"USA",
"details":"Comm-Trip",
"Service":"COMMUNICATION",
},
];
I was able to do that by this code
let objectData = [login to view URL](function (acc,cur) {
if (!acc[[login to view URL]])
acc[[login to view URL]] = { data : []};
acc[[login to view URL]].[login to view URL](cur)
return acc;
},
{} );
the code above allowed me to filter only by country and it's work but i want to do this same thing by country and service BOTH and i want the result like this :
[
{
Country :"CHINA",
Services : [
{"name":"BUSINESS", data : [{"details":"V2020"},{"details":"V3030"}]},
]
},
{
Country :"USA" ,
Services : [
{"name":"BUSINESS", data : [{"details":"Bus-Trip20"}]},
{"name":"COMMUNICATION", data : [{"details":"Comm-Trip30"}]},
]
},
]
프로젝트 ID: #27109132
프로젝트 소개
이 일자리에 대한 프리랜서 12 명의 평균 입찰가: $49
Hello sir, Greeting. I am a Python Expert with career for 6 years over. I am very happy to bid on your job. I have rich experience in web Backend development with python Django REST, Django Flask Frameworks. Also, 기타
JavaScript EXPERT here I can help you with Java Script Arrays I have 8+ years of experience in Web Designing and Development. Let have a chat and discuss in detail I have read your description. Once we clear our r 기타
Hello, Javascript Expert here. my all works are related in javascript, as web developer, almost developers work with javascript, it is obiously right, because it's versy basic skill. Pls send me offer. Thanks, Anton
Hello Potential Client. I am professional software developer with 10 years experiences of Javascript and Python. I have developed many Project. I can start working right now and can do it successfully. I’m waiting for 기타
Hello, I can help with your javascript filter. you can send me a chat to discuss more about it, and I will fix it right away. thanks.
iam experienced with javascript and can help you with this array right now and will send you the working code for what you asked for
Hello, I hope you are doing well, I have 3+ years of experience in Web Designing and Developing using Javascript, PHP &Jquery. Let have a chat and discuss in project in detail. I have already read your description. On 기타