Using this recomentations https://stackoverflow.com/a/15192747/3620727 I tried extand FormData to implement a new method, but it's not working. Follow my code:
function Form(form){
FormData.apply(this, form);
}
Form.prototype = new FormData();
Form.prototype.constructor = Form;
The console shows me this message:
Uncaught TypeError: Failed to construct 'FormData': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
WHere am I going wrong?