How can I make a Typescript function parameter have a default value ?
I have this code:
modalSubmit = (autoSave) => {
var self = this;
self.stateService.network('Submitting');
self.modal.resetDisabled = true;
self.modal.submitDisabled = true;
autoSave = autoSave || false;
Is there a way with Typescript that I can make autoSave default to false if it's not set ?