JSFiddle - React, Tailwind, and code Playground
Code to check parent ps if child exists.
by pawan1_saket
JavaScript
var newAssigned = [ "2-1-1", "2-1-2", "2-2-1", "2-2-2", "2-2-3", "2-2-4", "2-2-5" ];
var psObject = {
"2" : [
{
"QID" : "2-2-2",
"key" : "Evidence Summary Overview",
"datatype" : "FreeFormText",
"value" : "HDW gets data via MDM etl standard publishing.\nPlease refer approved flow in the file MDM Online and Batch Interfaces (Release E3).pdf slide 2 at sharepoint location http://teams.global.hsbc/sites/USCDO/Anchor%20programs/Forms/AllItems.aspx?RootFolder=%2Fsites%2FUSCDO%2FAnchor%20programs%2FUS%20MDM%20Certification%20and%20Adoption%2FAdoption%2FApplications%2FHDW"
}
],
"2-2-2" : [
{
"QID" : "2-2-2",
"key" : "Evidence Summary Overview",
"datatype" : "FreeFormText",
"value" : "HDW gets data via MDM etl standard publishing.\nPlease refer approved flow in the file MDM Online and Batch Interfaces (Release E3).pdf slide 2 at sharepoint location http://teams.global.hsbc/sites/USCDO/Anchor%20programs/Forms/AllItems.aspx?RootFolder=%2Fsites%2FUSCDO%2FAnchor%20programs%2FUS%20MDM%20Certification%20and%20Adoption%2FAdoption%2FApplications%2FHDW"
}
],
"2-3" : [
{
"QID" : "2-2-2",
"key" : "Evidence Summary Overview",
"datatype" : "FreeFormText",
"value" : "HDW gets data via MDM etl standard publishing.\nPlease refer approved flow in the file MDM Online and Batch Interfaces (Release E3).pdf slide 2 at sharepoint location http://teams.global.hsbc/sites/USCDO/Anchor%20programs/Forms/AllItems.aspx?RootFolder=%2Fsites%2FUSCDO%2FAnchor%20programs%2FUS%20MDM%20Certification%20and%20Adoption%2FAdoption%2FApplications%2FHDW"
}
],
"2-3-2" : [
{
"QID" : "2-2-2",
"key" : "Evidence Summary Overview",
"datatype" : "FreeFormText",
"value" : "HDW gets data via MDM etl standard publishing.\nPlease refer approved flow in the file MDM Online and Batch Interfaces (Release E3).pdf slide 2 at sharepoint location...