3 ms·
For the inline return: return $(this).each(fn); I'm actually surprised that the JS engines don't do this kind of optimization automatically.
by dhimes 16y ago
For the inline return:
return $(this).each(fn);
I'm actually surprised that the JS engines don't do this kind of optimization automatically.
- deleted 16y ago[deleted]
- tlrobinson 16y agoIt's quite possible some of them do, but the performance difference is probably negligible anyway, it's just extra code that doesn't need to exist.
- dhimes 16y agoI see. It speaks to a certain elegance of programming, which is a useful filter for estimating quality. I actually totally get that.