3 ms·
In Firefox 25 on Linux, Array Join Nocopy seems to perform the fastest.
by FreeFull 13y ago
In Firefox 25 on Linux, Array Join Nocopy seems to perform the fastest.
- warfangle 13y agoExactly. I rarely build up an array within a loop and then join it. That kind of thing just seems dirty - use a buffer! It's usually, e.g., ['some string ', someVar, ' some rest of string'].join('');