How can I can convert my JS Object to FormData?
FormData
The reason why I want to do this is, I have an object that I constructed out of the ~100 form field valu
You can simply install qs:
qs
npm i qs
Simply import:
import qs from 'qs'
Pass object to qs.stringify():
qs.stringify()
var item = { description: 'Some Item', price : '0.00', srate : '0.00', color : 'red', ... ... } qs.stringify(item)