Skip to content

Commit

Permalink
Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zellwk committed Apr 17, 2023
1 parent 383fbc5 commit 5c7efbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function debugHeaders(requestOptions) {
* @param {FormData} formData
* @returns Object
*/
export function toJSON(formData) {
export function toObject(formData) {
const obj = {}
for (const data of formData) {
obj[data[0]] = data[1]
Expand Down

0 comments on commit 5c7efbb

Please sign in to comment.