source:
imaps-frontend/node_modules/form-data/lib/populate.js@
d565449
Last change on this file since d565449 was d565449, checked in by , 4 weeks ago | |
---|---|
|
|
File size: 177 bytes |
Rev | Line | |
---|---|---|
[d565449] | 1 | // populates missing values |
2 | module.exports = function(dst, src) { | |
3 | ||
4 | Object.keys(src).forEach(function(prop) | |
5 | { | |
6 | dst[prop] = dst[prop] || src[prop]; | |
7 | }); | |
8 | ||
9 | return dst; | |
10 | }; |
Note:
See TracBrowser
for help on using the repository browser.