I've the following piece of code for copying one associative array to other,
<script>
var some_db = new Array();
some_db["One"] = "1";
some_db["Two"] = "2";
some_db["Three"] = "3";
var copy_db = new Array();
alert(some_db["One"]);
copy_db = some_db.slice();
alert(copy_db["One"]);
</script>
But the second alert says "undefined".. Am I doing something wrong here? Any pointers please...