I have the following array:
var config = {
default: {
username: 'bye',
password: '123',
tries: 3
},
custom: {
username: 'hello',
tries: 2
}
};
I need to get the following result from it:
var config = {
username: 'hello',
password: '123',
tries: 2
};
How can I achieve this?