I have this array
var user = {
"tester": {
id: "1",
name: "tester"
}
};
and this function
function get(a, b) {
return user[a].b
}
get('tester', 'id')
How should I fix it so that the result can be 1? Thank for your helps
var testerId = user.tester.id