3 ms·
Exactly. 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 ', s
by warfangle 13y ago
Exactly. 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('');