Changes in Filter Methods

There has been a recent change in the way callback functions of the various filter functions work. Earlier, the callback functions used to take only one element at a time. Following were the syntaxes for the 3 most commonly used filter functions. ArrayFilter – arrayFilter(array,function(arrayElement){return true|false;}); ListFilter – listFilter(list,function(listElement){return true|false;}); StructFilter – structFilter(struct,function(key, value){return true|false;});   As we can see, for all of these filters, the callback function has access to only one item at a time. Effectively this means […]