aboutsummaryrefslogblamecommitdiff
path: root/app/js/filters.js
blob: 7db9f1797efb989e56fb461308067762ff6c1579 (plain) (tree)
1
2
3
4
5
6
7
8
9


             




                                                
                     

                              
           



                  
'use strict';

/* Filters */
app.filter('sliding2', function() {
  return function(input) {
    var groups = [];

    for (var i = 0; i < input.length - 1; ++i) {
      	groups.push({
      		_1: input[i],
      		_2: input[i+1]
      	});
    }
    return groups;
  };
});