enter code hereI have a batch array that contains three named arrays [valid1, valid2 and valid3]
const valid1 = [4, 5, 3];
const valid2 = [5, 5, 3];
const invalid1 = [3, 7, 1];
const batch = [valid1, valid2, invalid1];
If I try to log the name of the arrays using batch[0], I get the actual content of valid1 instead of the string "valid1".
How could I access the actual name of the arrays within batch? I.e:
I expect console.log(batch[0]); to log "valid1" but it logs [4, 5, 3] instead.