Advertisement
JeffBobbo

Untitled

Jun 13th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function objectMerge(destination, source)
  2. {
  3.   Object.keys(source).forEach(function(key) {
  4.     if (source[key] === undefined || source[key] === null)
  5.       return;
  6.     destination[key] = source[key];
  7.   });
  8.   return destination;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement