The reality is that my onFinish function is an optional parameter and not required:
public move(onFinish?: () => void) {
…
}
If I call move(); while choosing not to specify anything for onFinish (because it’s optional), would that cause problems if there is an inner call onFinish(); within the function? If so, how would I set this to invoke the function parameter only if the parameter was specified?