title: How to break during reduce method?
body: <pre><code>data_set.reduce(function(prev,curr,index,arr){                        
      return prev.then(function(){
          db.health_consideration.findAll({
              where:{ FoodId :  curr.id }
          }).then(function(ing_sets){
              sumData[2].push(ing_sets);
  
              if(index == arr.length-3){
                //I want to break this point. 
              }
  
              if(index == arr.length-1){
                  console.log('wow3');
                  console.log(sumData[2].length);
                  data_set.reduce(function(prev,curr,index,arr){
  
                      return prev.then(function(){
                          db.guaranteed_analysis.findAll({
                              where:{ FoodId :  curr.id }
                          }).then(function(ing_sets){
                              sumData[3].push(ing_sets);
                              if(index == arr.length-1){
                                  console.log('wow4');
                                  console.log(sumData[3].length);
                              }
  
                          })
                          .catch(function(e){
                              console.log(e);
                          });
                      })
                  },Promise.resolve())
                  .catch(function(e){
                      console.log(e);
                  })    
              }
  
          })
          .catch(function(e){
              console.log(e);
          });
      })
  },Promise.resolve())
  .catch(function(e){
      console.log(e);
  })
  </code></pre>
  
  <p>I want to make it like  (db.health_consideration find all data using multiple food id) -> (db.guaranteed_analysis find all data using multiple food id).</p>
  
  <p>but if error occurs during finding data. I want to stop next step.</p>
  
  <p>ex) </p>
  
  <pre><code>if(index == arr.length-3){
                //I want to break this point. 
              }
  </code></pre>