views:

23

answers:

1

Is there a way I can dynamically add data to a map in javascript. A map.put(key,value)? I am using the yui libraries for javascript, but didnt see anything there to support this.

Thanks!

+1  A: 
Pointy
Right, I mean a javascript "map". how would you build a myMap.put() function?
stevebot
@stevebot: Doesn't the last line in his post do exactly that?
Matti Virkkunen
Okay, I hear you. I can just do myMap[anyKey] = anyValue and this works for me. thanks!
stevebot