I read somewhere a while back (unfortunately can’t remember where), that it was wise to always put a return statement at the end of every function in JavaScript, because it clears the memory of objects and variables created in that function.
Is there any truth to that?
There is no truth in that. None.