Closed adbenitez closed 2 years ago
will that be compatible with most browsers?
not in internet explorer (which is nearly dead anyway), but the other browsers support it for some time already: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters#browser_compatibility
done, pls, merge if you think it is fine
you can do
serial = 0
in the function signature and also do that in the ts to mark the argument as optional