app.js 263 Bytes edit raw blame history 1 2 3 4 5 6 7 angular.module('focaFiltros', []) .filter('comprobante', function() { return function(valores) { return (Array(4).join('0') + valores[0]).slice(-4) + '-' + (Array(8).join('0') + valores[1]).slice(-8); }; });