I have object with array like that:
const result = {
key1: [],
key2: [],
key3: [],
key4: []
};
And I want to push to one of the "key" something like that:
result.key1.push({key11: []})
result.key1.push({key12: []})
result.key1.push({key13: []})
But I need the result looks like that:
{
key1: [
key11: [],
key12: [],
key13: []
],
key2: [],
key3: [],
key4: []
}
I tried almost everything did I miss something?
key11is a object property