aboutsummaryrefslogtreecommitdiff
path: root/app/js/filters.js
blob: 7db9f1797efb989e56fb461308067762ff6c1579 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'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;
  };
});