title: Reading all files from a JSzip object folder and iterate
body: <p>I have a code where I am generating the zipped file with images in it. </p>
  
  <p>var zip = new JSZip(result.templateEncoded, {base64: true});</p>
  
  <p>The zipped file structure looks something like this:</p>
  
  <pre><code>{ "files":
          {
            "test/rel":{
                        "name":"xxx.txt"
                       },
            "test/doc.xml":{
                           "name":"kajdadnkan"
                           },
            "test/media/image1.jpeg":{
                                     "name": "word/media/image1.jpeg"
                                     },
            "test/media/image1.jpeg":{
                                     "name": "word/media/image2.jpeg"
                                     }
          }
  }
  </code></pre>
  
  <p>Now I want to access all images under "test/media". When I tried zip.folder('word/media/'); it creates a new folder and sets the root path to 'word/media/'</p>
  
  <p>Also tried below code but it throws JS error forEach() is not supported function.</p>
  
  <pre><code>zip.folder('word').forEach(function (relativePath, file){
                              console.log("iterating over..", relativePath);
                          });
  </code></pre>
  
  <p>Basically, I want to extract all media files and rename them to .png. 
  I don't have much exposure here so appreciate any help.</p>