Skip to content

Commit

Permalink
docs(note): add formData2Object
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellipse120 committed Dec 10, 2024
1 parent d36cb0a commit 93ef83d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions note.md
Original file line number Diff line number Diff line change
Expand Up @@ -4701,3 +4701,17 @@ console.log(bar[Symbol.toStringTag]) // Bar
- 6. Window alert dialog and dialog are the only two roles in this category
---
## 169. `FormData` to `Object`
```js
const formData = new FormData()
formData.append('a', 1)
formData.append('b', 2)

const v = Object.fromEntries(formData.entries())
console.log(v)
```
---

0 comments on commit 93ef83d

Please sign in to comment.