I have an variable FormData which stores Array[object object] and object has its name and values.
How can I access the name and values in an array?
For example, Array[object] has name="fruit" value="1". I want the value and store it in an input hidden field.