title: How to find the position of each array object using Nodejs
body: <p>How can i return array position of each object in an array.</p>
  <h1>code</h1>
  <pre><code>let targets = [1.2, 2.3, 3.5];
  let targetUpdatedOn = [2018-07-06, 2018-07-06, 2018-07-06];
  let liveCoinPrice = 1.3;
  
  let targets_hit = targets.filter(function(target_value) {
    return liveCoinPrice &gt;= target_value;
  });
  
  This what is done to find array position.
  
  targets_hit.forEach(function(key) { 
  
     if(targetUpdatedOn[key] === undefined){ 
         console.log(targetUpdatedOn); 
      } 
  } 
  </code></pre>
  <p>I want to return array position of each targets_hits . Any help would be thankful.</p>