Skip to content

Instantly share code, notes, and snippets.

View VividVisions's full-sized avatar

Walter VividVisions

View GitHub Profile
function merge(target, source) {
/* Merges two (or more) objects,
giving the last one precedence */
if ( typeof target !== 'object' ) {
target = {};
}
for (var property in source) {