Open this example in the interactive library
Source code
const form = new FormData();
form.append("tag", "css");
form.append("tag", "js");
form.set("tag", "python");
console.log([...form.entries()]);
Sample output
[ [ 'tag', 'python' ] ]

Open this example in the interactive library
const form = new FormData();
form.append("tag", "css");
form.append("tag", "js");
form.set("tag", "python");
console.log([...form.entries()]);
[ [ 'tag', 'python' ] ]