);

        for (let i = 0; i < tr.length; i++) {
            let keyTd = tr[i].getElementsByTagName("td")[0];
            let valueTd = tr[i].getElementsByTagName("td")[1];

            if (keyTd || valueTd) {
                let keyText = keyTd.textContent || keyTd.innerText;
                let valueText = valueTd.textContent || valueTd.innerText;

                if (keyText.toUpperCase().indexOf(filter) > -1 || valueText.toUpperCase().indexOf(filter) > -1) {
                    tr[i].style.display = ""