Responding to
Plain Javascript, ES6, easy:
It could be also like this:
let cells = document.querySelectorAll("td.mycell"); const values = [...cells].map((cell) => cell.textContent); const distinct= [...new Set(values)];