Closed namirsab closed 7 years ago
Multidimensional array
var map = {};
var x = 1;
var y = 2;
var z = 3;
map[[x, y, z]] = true;
map[[x + 10, y, z]] = true;
map["1,2,3"] // -> true
map["11,2,3"] // -> true
oh god
guys, can you please send corresponding PRs?
PR created:
I find this one really funny as well:
Of course the explanation is easy, the bracket operator converts everything you pass to a string, and converting an 1 element array to string is just returning the conversion of that element to string.