Re: array map in javascript
Maps don't exist in JavaScript. You can use objects, which are similar, but not the same.
Re: array map in javascript
hmm well... what do u suggest me... i reallyy have no clue
nvm
Code:
var mop = Object();
mop[key] = val;
Re: array map in javascript
You might want to use the object literals instead. But, if you are just looking for key -> value assignments, you can use associative arrays instead of objects.
Code:
var mop = {}; // object
var mop = []; // array
Re: array map in javascript