jkabot
var copy = oSearch.filters.slice(); // makes it clear to reader that this is different array than oSeach.filters copy.forEach(function(element) { // edit the filter }); oSearch.filters = copy;