13 lines
353 B
JavaScript
13 lines
353 B
JavaScript
var FormData = require('form-data');
|
|
function form(obj) {
|
|
var form = new FormData();
|
|
if (obj) {
|
|
Object.keys(obj).forEach(function (name) {
|
|
form.append(name, obj[name]);
|
|
});
|
|
}
|
|
return form;
|
|
}
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.default = form;
|
|
//# sourceMappingURL=form.js.map
|