Today I\'m working on a pet project using chained function calls, and I\'m curious how I might detect when the last function in the chain is executed. For example:
The traditional approach is to put whatever you want done after the final function on the next line:
func1('initial data').func2().func3().func4(); allFunctionsDone();
;)