title: javascript object keys and value if value match then store
body: <p>I have an object and another is object list1 get from the query but I want to store Obj key value into the array.</p>
  
  <pre><code>var Obj = { 
    '1': 'Test 1',
    '2': 'Test 2',
    '3': 'Test 3',
    '4': 'Test 4',
    '5': 'Test 5'
  }
  </code></pre>
  
  <p>I get data from a query that is an index value in data2 key  1,2,3,4 and 5 in an object 
  query = 'select data1, data2, data3 from test';</p>
  
  <pre><code>list1 = [{
        data1: 123,
        data2: 4,
        data3: 'value3',
  }]
  </code></pre>
  
  <p>I want an object output if data2 value.</p>
  
  <pre><code>
  list1 = [{
        data1: 123,
        data2: 'TEST 4',
        data3: 'value3',
  }];
  
  
  </code></pre>