source:
frontend/node_modules/form-data/lib/populate.js
| Last change on this file was 9af201e, checked in by , 11 days ago | |
|---|---|
|
|
| File size: 232 bytes | |
| Line | |
|---|---|
| 1 | 'use strict'; |
| 2 | |
| 3 | // populates missing values |
| 4 | module.exports = function (dst, src) { |
| 5 | Object.keys(src).forEach(function (prop) { |
| 6 | dst[prop] = dst[prop] || src[prop]; // eslint-disable-line no-param-reassign |
| 7 | }); |
| 8 | |
| 9 | return dst; |
| 10 | }; |
Note:
See TracBrowser
for help on using the repository browser.
