I'm looking for a way to push an array into an object.
Chek this out:
var playlists = {
playlist01: [],
playlist02: [],
playlist03: []
};
Now I need to push a new array, named "playlist04", but I don't know the name, I have it in a var name.
Something like this: playlists.push($foo: []);
Can anyone help me?
Thank you and greetings!