I have a simple object (or hash) in Javascript:
var settings = {
link: \'http://example.com\',
photo: \'http://photos.com/me.jpg\'
};
I nee
Underscore.js also has an extend function if you are not using jQuery:
extend
_.extend(destination, *sources)
Copy all of the properties in the source objects over to the destination object, and return the destination object. It's in-order, so the last source will override properties of the same name in previous arguments._.extend({name: 'moe'}, {age: 50}); => {name: 'moe', age: 50}