So currently I have an Object of arrays, to fill with objects.
What I have currently is something like so:
...
let foo = {
"a" : [],
"b" : [],
"c" : []
}
then,
let obj = {
...
}
foo["a"].push(obj);
this gives me a
Cannot read property 'push' of undefined
Please help! Thank you!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…