I read somewhere some time ago (unfortunately, I can’t remember where) that it would be wise to always put the operator returnat the end of each function in JavaScript, since it clears the memory of objects and variables created in this function.
Is there any truth to this?
source
share