Files: 89658f9e88208096af0770fc6f691ff668a73c0b / volunteers / formHandler.js
193 bytesRaw
1 | module.exports = {handle} |
2 | |
3 | function handle (form) { |
4 | var formData = new FormData(form) |
5 | var data = {} |
6 | for (var pair of formData.entries()) { |
7 | data[pair[0]] = pair[1] |
8 | } |
9 | return data |
10 | } |
11 |
Built with git-ssb-web