JSFiddle - React, Tailwind, and code Playground

HTML

<pre id="pre"></pre>

JavaScript

//This is given array of object which can be many ,here I put just two instance in the array for demonstration purpose
var oDataSet = [{
  __metadata: {
    aaa: 111,
    bbb: 222
  },
  to_ExcludedTerms: {
    results: []
  },
  to_ListTypeGroupAssignment: {
    results: [{
      AuthorisationGroup: 'AuthorisationGroup 1',
      ListTypeGroup: 'ListTypeGroup1',
      ListTypeGroupDescription: 'ListTypeGroupDescription 1',
      ParentKey: '8ae25d47-c3cc-4ee3-a040-ea00505692111',
      __metadata: {}
    }, {
      AuthorisationGroup: 'AuthorisationGroup 2',
      ListTypeGroup: 'ListTypeGroup2',
      ListTypeGroupDescription: 'ListTypeGroupDescription 2',
      ParentKey: '34bcdc74-ab42-4538-8657-0a2b0473fcb7',
      __metadata: {}
    }, {
      AuthorisationGroup: 'AuthorisationGroup 3',
      ListTypeGroup: 'ListTypeGroup3',
      ListTypeGroupDescription: 'ListTypeGroupDescription 3',
      ParentKey: '34bcdc74-ab42-4538-8657-0a2b0473fcb5',
      __metadata: {}
    }]
  }
}, {
  //This is the second instance of the object with same keys but diffrent values
  __metadata: {
    aaa: 333,
    bbb: 444
  },
  to_ExcludedTerms: {
    results: []
  },
  to_ListTypeGroupAssignment: {
    results: [{
      AuthorisationGroup: 'AuthorisationGroup 6',
      ListTypeGroup: 'ListTypeGroup6',
      ListTypeGroupDescription: 'ListTypeGroupDescription 6',
      ParentKey: '8ae25d47-c3cc-4ee3-a040-ea00505692116',
      __metadata: {}
    }, {
      AuthorisationGroup: 'AuthorisationGroup 7',
      ListTypeGroup: 'ListTypeGroup7',
      ListTypeGroupDescription: 'ListTypeGroupDescription 7',
      ParentKey: '34bcdc74-ab42-4538-8657-0a2b0473fcb7',
      __metadata: {}
    }, {
      AuthorisationGroup: 'AuthorisationGroup 8',
      ListTypeGroup: 'ListTypeGroup8',
      ListTypeGroupDescription: 'ListTypeGroupDescription 8',
      ParentKey: '34bcdc74-ab42-4538-8657-0a2b0473fcb8',
      __metadata: {}
    }]
  }
}];



//This is the values which I should search find in...