In my JS code I have the following function:
function clear_results(flow = false) {
//do some stuff
}
This works fine on Chrome and Firefox but raises an error on Safari:
SyntaxError: Expected token ')'
Changing to:
function clear_results(flow) {
//do some stuff
}
Fixes the problem but I want flow to have a default value of false if not given. Thanks