express/public/javascripts/utilities.js
/* Simple group length compute for arrays */
Simple group length compute for arrays
Simple group length compute for arrays
function groupsLength(array, groupLength) {
  var remainder = array.length % 4;
  var groupNumber = (array.length - remainder) / 4;
  return remainder ? groupNumber + 1 : groupNumber;
}
function groupsLength ( array , groupLength ) { var remainder = array . length % 4 ; var groupNumber = ( array . length - remainder ) / 4 ; return remainder ? groupNumber + 1 : groupNumber ; }
Simple group length compute for arrays
Simple group length compute for arrays