title: Node.js it prints the same result twice, instead of once
body: <p>This is my node.js application code:</p>
  
  <p>This is my html.js file code </p>
  
  <pre><code>    /**
   * HTML Helpers
   */
  'use strict';
  
  var cheerio = require('cheerio');
  
  
  module.exports.gotHTML = function gotHTML(error, response, htmlBody) {
      if (!error &amp;&amp; response.statusCode == 200) {
  
          const $ = cheerio.load(htmlBody);
  
          var reviews = [];
          var businesses = [];
          var combinedData;
          var reviewsSelectors = $('.js-hot-new-businesses-section .rating-qualifier');
          var businessSelectors = $('.js-hot-new-businesses-section .biz-name');
  
          reviewsSelectors.each(function (index, value) {
              reviews.push($(this).text().trim());
          });
  
          businessSelectors.each(function (index, value) {
              businesses.push($(this).text().trim())
          });
  
          combinedData = businesses.map(function (value, index) {
              return {businessName: value, reviewsTotal: reviews[index]};
          });
  
          combinedData.forEach(function(value, index) {
              console.log(value["businessName"] + " - " + value["reviewsTotal"]);
          })
  
      }
  }
  </code></pre>
  
  <p>And this one is the app.js file code</p>
  
  <pre><code>    'use strict';
  
  const request = require('request');
  const cheerio = require('cheerio');
  const express = require('express');
  const app = express();
  const htmlHelpers = require('./html');
  
  
  const url = 'https://www.yelp.com/sf';
  
  request(url, htmlHelpers.gotHTML);
  
  
  // Expose app
  exports = module.exports = app;
  </code></pre>
  
  <p>And when I execute this code,in order to print the name and number of reviews of the first result once it prints those twice. This is the output</p>
  
  <pre><code>Boba Guys - 24 reviews
  Boba Guys - 24 reviews
  Coletta Gelato - 23 reviews
  Coletta Gelato - 23 reviews
  An Chi - 29 reviews
  An Chi - 29 reviews
  </code></pre>
  
  <p>By the way the same code properly executes and prints the desired results in the browser console.</p>
  
  <pre><code>Boba Guys - 24 reviews
  Coletta Gelato - 23 reviews
  An Chi - 29 reviews
  </code></pre>