Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function objectMerge(destination, source)
- {
- Object.keys(source).forEach(function(key) {
- if (source[key] === undefined || source[key] === null)
- return;
- destination[key] = source[key];
- });
- return destination;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement