fix unimgr l3 federation
[unimgr.git] / dlux / cpeui / cpeui-module / src / main / resources / cpeui / utils.js
1 Array.prototype.filterByField = function(field_name, value, to_filter_out) {
2   if (to_filter_out == undefined) {
3     to_filter_out = false;
4   }
5   return this.filter(function(item) {
6     return (item[field_name] == value) != to_filter_out;
7   });
8 };