const convertFormDataToObject = (formData) => {
    const obj = {};
    formData.forEach((value, key) => {
        if (obj[key]) {
            // If the key already exists, convert it to an array
            obj[key] = Array.isArray(obj[key])
                ? [...obj[key], value]
                : [obj[key], value];
        }
        else {
            obj[key] = value;
        }
    });
    return obj;
};

export { convertFormDataToObject };
//# sourceMappingURL=ConvertFormDataToObject.js.map
