(function () { "use strict"; angular.module("EnrApp") .filter("districtNumber", function () { return function (arrayDistricts, districtCode, jsonPropertyVal, officeName) { var returnValue = {}; var excludedOffices = []; if (arrayDistricts != undefined) { arrayDistricts.forEach(function (district) { if (district.JsonPropertyValue == jsonPropertyVal && parseInt(district.CodeValue) == parseInt(districtCode)) returnValue = district; }); } return returnValue; }; }); }());