tHola capos del JS I have a terrible doubt and I would like you to guide me so that I can resolve it. I have the following arrangement of objects where I must eliminate the crossed elements between "from" and "to", which are repeated. In what way could you make the comparisons and then eliminate those elements?
arreglo = [
{"from":"163-D","to":"1485-B"},
{"from":"163-D","to":"1723-B"},
{"from":"1-B","to":"201-B"},
{"from":"1723-B","to":"1-B"},
{"from":"1-B","to":"958-B"}, // elementos a eliminar
{"from":"958-B","to":"1-B"} // elementos a eliminar
]
I hope you can guide me, thank you already: D