I have an array in javascript and I want to use its values as keys for another array.
var arrKeys = ['place', 'name', 'age' ];
var result = [place]['name']['age'] = 5;
Now I want to check if there is a value for this keys in another associative array:
if ( result[place][name][age] {
console.log('exists');
}
How can I use the values from arrayKeys as array keys in the result array?