A list of helpful front-end related questions you can use to interview potential candidates, test yourself or completely ignore.
//json is
vm.o={
"products":{
"productsSubCategories":{
"subCategoryName":""
}
}
}
//and the array is like this
vm.a = ["ba","js"]
//i need like this
vm.o={
"products":{
"productsSubCategories":{
"subCategoryName":"ba"||"js"
}
}
}
//this what i tried
var r= vm.category.map(function(p){ return '"' + p + '"'; }).join(',');
vm.o.products.productsSubCategories.subCategoryName = r;