title: How to pass array in GULP task in loop
body: <p>I am not sure on to make the below given code to work:</p>
  
  <pre><code>var language = ['en', 'sp'];
  
  gulp.task('jsonResourcesConcat', function() {
    return gulp.src('path/to/json/' + language + '/resources.json')
      .pipe(insert.prepend('window.resourcesData.' + language + ' = '))
      .pipe(concat('resources-' + language +'.js'))
      .pipe(gulp.dest('./www/assets/json2js/'));
  });
  </code></pre>
  
  <p>I need the file should be output to folder <code>./www/assets/json2js/</code> with file names 'resources-en.js' and 'resources-sp.js'</p>