Consider the following array structure. This is a pseudo syntax where Table
and Row
is just an Array
. And Row
contains different objects. I use this for an excel sheet like application.
Table [Row, Row, Row, ...]
0: Row
0: TextEntry {value: "1", active: false}
1: TextEntry {value: "3", active: false}
2: NumberEntry {value: 0, active: false}
1: Row
0: TextEntry {value: "text", active: false}
1: TextEntry {value: "8", active: false}
2: NumberEntry {value: 0, active: false}
2: Row
0: TextEntry {value: "1", active: false}
1: TextEntry {value: "3", active: false}
2: NumberEntry {value: 0, active: false}
...
I want to determine if there is a Row
inside inside Table
, which identical to another Row
by comparing the value
attributes. In this example the array
on index 0
whould be identical to the one on index 2
.
How could I achieve that in js?