How do I in Node.JS check if a object like {idx: X, idy: y}
in is in a list?
I’ve tried with .index
and other things, but I think because it is a object with multiple values it fail.
My list has the format:
list = [{idx: xyz, idy: zyx}, {idx: qwe, idy: ewq}, ...]
2