score:4

Accepted answer
isSelected = ii === this.state.selectedIndex

1. ii === this.state.selectedIndex // comparator operator
2. isSelected = (result of step 1) // assignment operator

score:4

isSelected = (ii === this.state.selectedIndex);

Related Query

More Query from same tag