Using Typescript/Angular 9:
const formData: FormData = new FormData();
formData.append('key', null);
console.log(formData.get('key'));
>> 'null'
this is a 'null' string, as opposed to null
value.
I need to somehow append null (or undefined) value to the FormData
. What can I do?