Comment on JS performance: try / catch versus checking for undefined Comments−danssig14yIt doesn't matter. You should signal errors with exceptions, not by returning undefined no matter how much slower it is. After all, it's supposed to be an exceptional case.
Comments
It doesn't matter. You should signal errors with exceptions, not by returning undefined no matter how much slower it is. After all, it's supposed to be an exceptional case.