/* * Merge objects into the first one */ exports.merge = function(defaults) { for(var i = 1; i < arguments.length; i++){ for(var opt in arguments[i]){ defaults[opt] = arguments[i][opt]; } } return defaults; };
info at jsclasses dot org