mirror of
https://github.com/xlorepdarkhelm/numinar-coding-project.git
synced 2026-09-06 08:18:24 -04:00
12 lines
192 B
JavaScript
12 lines
192 B
JavaScript
'use strict';
|
|
|
|
// populates missing values
|
|
module.exports = function (dst, src) {
|
|
|
|
Object.keys(src).forEach(function (prop) {
|
|
dst[prop] = dst[prop] || src[prop];
|
|
});
|
|
|
|
return dst;
|
|
};
|