function isInArray(sprintID, iterations) {
      var dupe = false;

      iterations.forEach(function(timebox) {
        if (timebox.id === sprintID) {
          dupe = true;
        }
      });

      return dupe;
    }
/*
     * Checks iterations array for existing elements
     */
Checks iterations array for existing elements
Checks iterations array for existing elements
function isInArray(sprintID, iterations) {
      var dupe = false;
      iterations.forEach(function(timebox) {
        if (timebox.id === sprintID) {
          dupe = true;
        }
      });
      return dupe;
    }
function isInArray ( sprintID , iterations ) { var dupe = false ; iterations . forEach ( function ( timebox ) { if ( timebox . id === sprintID ) { dupe = true ; } } ) ; return dupe ; }
Checks iterations array for existing elements
Checks iterations array for existing elements