I'm working with a code snippet that looks like this:
for(var j=0; j < this.arr.length; j++) {
arr.push({
id: 'j',
label: this.arr[j],
display: () => this.arr[j]
})
}
I am curious about how to set the value inside single quotes (' ') for each iteration. I would like it to be something like '1', '2', '3' .....