How to check the value of a number?
for(var index in this.choicesDM) {
if(index == 0) {
this.currentChoice = this.choicesDM[index]
}
}
Here I get the error as mentioned in the title of the question. I also tried to explicitly define the type of index. But didn't work. Found this link but didn't got the solution.