'use strict'; angular.module('simplePvrFilters', []). filter('chunk', function() { function chunkArray(array, chunkSize) { var result = []; var currentChunk = []; for (var i=0; i 0) { result.push(currentChunk); } return result; } function defineHashKeys(array) { for (var i=0; i 0) { return '(' + sentences.join(', ') + ')'; } return ''; } });