A
Archos
How to pass a multi-dimensional index to a function? The next code
only works for single index
// ==
function M(index) {
var map = {1: {1: "one"}, 2: {2: "two"}};
console.log(map[index]);
}
// ==
undefined
only works for single index
// ==
function M(index) {
var map = {1: {1: "one"}, 2: {2: "two"}};
console.log(map[index]);
}
// ==
Object { 1="one"}
undefinedM([1][1])
undefined