React gives me an error:
'key' is assigned a value but never used
But I don't need to use the keys ever, so how do I work around this?
for (const [key, value] of Object.entries(obj)) {
if (value === 'null') {
let random = Math.floor(Math.random() * 101);
arr.push(random);
} else {
let newValue = parseInt(value);
arr.push(newValue);
}
}
...