What I'm trying to do is add a check to my for loop that searches for "value_1" or "value_3". If found, than add a "#" at the beginning of that value.
Ex: #value_1, value_2, #value_3, etc
Here's my code:
for(i=1; i < columns.length-1; i++){
currentRecordKey = columns[i].dataIndex;
if(currentRecordKey == "value_1" || "value_3") {
currentRecordKey = "#" + currentRecordKey;
}
}
Worked out in my head, but this doesn't get the job done.
Any ideas?
Cheers
"value_3"is alway truthy. Looks like you have a typo.