
JSJ 474: Things JavaScript Developers Should Know, Part 1
JavaScript Jabber
00:00
Using Maps to Map Objects
In the olden days, you just had to store them in an array and then loop through the array until youind found the function that triple equalled the function you were handling. But i can give you another example. Let's say that you want to add some arbitrary data, not string data, just arbitrary data on top of h t men elements. So you need to kind of map that ancenal element to that other object, which contains your own private data. With maps, it's really easy to do. And without maps, you either have to really break in capsulation or jump to a lot of hoops to achieve something similar.
Play episode from 28:12
Transcript


