title: Compare common columns from two list and create a new list according with the match and mismatch
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>this.monthList.map(sli_record =&gt; {
            let rec_found = this.newlist.find(vale_record =&gt;vale_record.Value === sli_record.Value);
            if(rec_found) {
            this.Results['Value'] = sli_record['Value'];
            this.Results['Month'] = sli_record['Month'];
            this.Results['Year'] = sli_record['Year'];
            this.Results['IsSubmittedID'] = sli_record['IsSubmittedID'];
            this.Results['IsEligible'] = sli_record['IsEligible'];
            this.Results['BackgroundCheckdone'] = sli_record['BackgroundCheckdone'];        
            }
            else {
            this.Results['Value'] = sli_record['Value'];
            this.Results['Month'] = sli_record['Month'];
            this.Results['Year'] = sli_record['Year'];
            this.Results['IsSubmittedID'] = 0;
            this.Results['IsEligible'] = 0;
            this.Results['BackgroundCheckdone'] = 0;
            this.Results['UserPass'] = sli_record['UserPass'];
            } 
            //console.log(this.Results);
            return this.Results;
      }</code></pre>
  </div>
  </div>
  </p>
  <p>Hi I am trying to check a common value tag of one list against another and fill in the data to a  new list new list &quot;Results&quot; according to the conditional check but not able to generate the desired result.</p>
  <p>Whenever the column &quot;Value&quot; from newlist is compared with the &quot;Value&quot; of monthList, if there is no value exist for that particular entry(Value column of newlist) in the monthList then it should create a entry with default values in the newlist array</p>
  <p>for eg: Consider this value</p>
  <blockquote>
  <p>{Id: 3, Value: 'June 2022'}
  this does not exist on the newlist as of now but it should add an new entry like below to the newlist array</p>
  <pre><code>  {
          &quot;Value&quot;: &quot;June 2022&quot;,
          &quot;Month&quot;: &quot;June&quot;,
          &quot;Year&quot;: 2022,
          &quot;IsSubmittedID&quot;: 0,
          &quot;IsEligible&quot;: 0,
          &quot;BackgroundCheckdone&quot;: 0
      }
  </code></pre>
  </blockquote>
  <pre><code>newlist=[
   { Id: 0, 
    Month: 'May',
    Year: 2022, 
    Value: 'February 2022',
    IsSubmittedID: 0,
    IsEligible: 1,
    BackgroundCheckdone: 1,
  },
  {Id: 0,
   Month: 'July',
   Year: 2022,
   Value: 'July 2022',
    IsSubmittedID: 0,
    IsEligible: 1,
    BackgroundCheckdone: 1,
  }]
  
  monthList =[
  {Id: 1, Value: 'August 2022'}
  {Id: 2, Value: 'July 2022'}
  {Id: 3, Value: 'June 2022'}
  {Id: 4, Value: 'May 2022'}
  {Id: 5, Value: 'April 2022'}]
  
  
  **I should get my result as of below for the Results list not able to figure out how to bind the value for the according to the list**
  
  [
      {
          &quot;Value&quot;: &quot;August 2022&quot;,
          &quot;Month&quot;: &quot;August&quot;,
          &quot;Year&quot;: 2022,
          &quot;IsSubmittedID&quot;: 0,
          &quot;IsEligible&quot;: 0,
          &quot;BackgroundCheckdone&quot;: 0
      },
      {
          &quot;Value&quot;: &quot;July 2022&quot;,
          &quot;Month&quot;: &quot;July&quot;,
          &quot;Year&quot;: 2022,
          &quot;IsSubmittedID&quot;: 0,
          &quot;IsEligible&quot;: 1,
          &quot;BackgroundCheckdone&quot;: 1
      },
      {
          &quot;Value&quot;: &quot;June 2022&quot;,
          &quot;Month&quot;: &quot;June&quot;,
          &quot;Year&quot;: 2022,
          &quot;IsSubmittedID&quot;: 0,
          &quot;IsEligible&quot;: 0,
          &quot;BackgroundCheckdone&quot;: 0
      },
      {
          &quot;Value&quot;: &quot;May 2022&quot;,
          &quot;Month&quot;: &quot;May&quot;,
          &quot;Year&quot;: 2022,
          &quot;IsSubmittedID&quot;: 1,
          &quot;IsEligible&quot;: 1,
          &quot;BackgroundCheckdone&quot;: 1
      }
  ]
  </code></pre>