1 | "use strict";
|
2 |
|
3 | var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports.getFormData = void 0;
|
9 |
|
10 | var _from = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/array/from"));
|
11 |
|
12 | var getFormData_ = function getFormData_(formEl) {
|
13 | var formData = new FormData(formEl);
|
14 | var data = {};
|
15 | (0, _from.default)(formData.entries()).forEach(function (pair) {
|
16 |
|
17 | data[pair[0]] = pair[1];
|
18 | });
|
19 | return data;
|
20 | };
|
21 |
|
22 | var getFormData = getFormData_;
|
23 | exports.getFormData = getFormData; |
\ | No newline at end of file |