title: How to parse, and iterate through, all rows from an Excel sheet file using JavaScript
body: <p>I am trying to parse and read every cell from an Excel sheet; it seems that I am parsing the file but I just can't go through each cell and display them.</p>
  
  <p>I am using the following code:</p>
  
  <pre><code>    var workbook = XLSX.read('datasets/persons.xlsx', { type: 'binary' });
      var sheet_name_list = workbook.SheetNames;
  
  
      // console.log(sheet_name_list);
      sheet_name_list.forEach(function (y) { /* iterate through sheets */
        //Convert the cell value to Json
        console.log(y);
        var roa = XLSX.utils.sheet_to_json(workbook.Sheets[y]);
        console.log(roa);
        if (roa.length &gt; 0) {
          result = roa;
        }
    });
  </code></pre>
  
  <p>I am getting an empty array when I try to print <code>console.log(roa)</code>, any idea how I should iterate through each cell from the file?</p>