populate.js 198 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 // populates missing values module.exports = function(dst, src) { for (var prop in src) { if (src.hasOwnProperty(prop) && !dst[prop]) { dst[prop] = src[prop]; } } return dst; };