dist/underscore-contrib.js
function(array, n) {
      var ret = [];
      var sz = _.size(array);

      if (n <= 0) return [];
      if (n === 1) return array;

      for(var index = 0; index < sz; index += n) {
        ret.push(array[index]);
      }

      return ret;
    }
function(array, n) {
      var ret = [];
      var sz = _.size(array);

      if (n <= 0) return [];
      if (n === 1) return array;

      for(var index = 0; index < sz; index += n) {
        ret.push(array[index]);
      }

      return ret;
    }
function ( array , n ) { var ret = [ ] ; var sz = _ . size ( array ) ; if ( n <= 0 ) return [ ] ; if ( n === 1 ) return array ; for ( var index = 0 ; index < sz ; index += n ) { ret . push ( array [ index ] ) ; } return ret ; }
Takes every nth item from an array, returning an array of the results.
Takes every nth item from an array returning an array of the results .