What's wrong with my looping? The first iteration has null?
generateRewardOptions = () => {
let options = []
const max = 20
for(let i = 1; i <= max; i++){
options[i] = {
key: i,
value: i,
text: i
}
}
return options
}
console.log(JSON.stringify(generateRewardOptions()));