Skip to content

Instantly share code, notes, and snippets.

Avatar

svlasov-gists

View GitHub Profile
@svlasov-gists
svlasov-gists / gist:2383751
Created Apr 14, 2012 — forked from padolsey/gist:272905
JavaScript: merge two objects
View gist:2383751
function merge(target, source) {
/* Merges two (or more) objects,
giving the last one precedence */
if ( typeof target !== 'object' ) {
target = {};
}
for (var property in source) {
View style.css
body {
padding: 50px;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}
a {
color: #00B7FF;
}
You can’t perform that action at this time.