1
0
CompleteNodeJS/notes-app/node_modules/validator/lib/util/merge.js
Jason Williams 6528d7204a Section 20
2019-08-11 12:15:16 -06:00

18 lines
407 B
JavaScript

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = merge;
function merge() {
var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var defaults = arguments[1];
for (var key in defaults) {
if (typeof obj[key] === 'undefined') {
obj[key] = defaults[key];
}
}
return obj;
}
module.exports = exports['default'];