code: function (arr, groupSize) {
  		var groups = [];
  		groupSize = groupSize || 100;
  		arr.forEach(function (n, i) {
  			var index = Math.trunc(i / groupSize);
  			if (groups.length === index) {
  				groups.push([]);
  			}
  			groups[index].push(n);
  		});
  		return groups;
  	}
docs: Divide array into an array of arrays of size groupSize
  @param {Array} arr
  @param {integer} groupSize