blob: c75a7b027f1c8e34a29353361f8481b4ddb2af1d (
plain)
1
2
3
4
5
6
|
export function psuFilter(items, type) {
if (!items || !items.length) return [];
return items.filter(function (el) {
return el.Sensor.toLowerCase().indexOf(type.toLowerCase()) > -1;
});
}
|