Within my nested associative arrays, I am trying to figure out how to splice a specific value. In a regular array, this is easily done with:
arr.splice(arr.indexOf('specific'), 1);
But when it comes to an array structure like this:
arr['hello']['world']
UPDATE: Could the code for hello['world']['continent']
be simplified?
var hello = {};
hello['world'] = {};
hello['world']['continent'] = "country";
delete hello['world']['continent'];
alert(hello['world']['continent'])