3 ms·
The performance hit of using .bind() instead of `self = this` is much larger than .forEach() vs loop. Pick your side :)
by ricardobeat 13y ago
The performance hit of using .bind() instead of `self = this` is much larger than .forEach() vs loop. Pick your side :)
- leokun 13y agoI pick less chance for errors over performance. Referencing variables outside of local scope is something I avoid. Write beautiful code first, because it's easier to optimize beautiful code than to beautify optimized code.