easy way to pack and unpack your data
yarn add formism
import { pack } from 'formism';
const sourceObj = [{
deep: {
file: new File([], 'empty.txt'),
string: 'string',
number: 123,
boolean: false,
},
}];
const formData = pack(sourceObj); // output a FormData instance
import { unpack } from 'formism';
const recoveredObj = unpack(formData);