Anyone familiar with Linq's ToDictionary method may be looking for a similar technique in JavaScript. The cool thing about JavaScript is that first-order properties (properties attached to the first prototype of the instance) are usually implemented in a "dicationary-like" way. Thus we