Return function in Javascript and how it works?
问题 I'm trying to optimize and existing piece of WebGl JavaScript code, and the bottleneck of the code is at an if statement with return at the end however, the return statement doesn't seem to return anything. function render() { if (object.loading) return; // there is no value after return // Loading is a boolean indicating if information is still being parsed from a file or not } This is the first time I'm seeing code that has a return statement without a succeeding variable specified to be