MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/30hyan/airbnb_javascript_style_guide_a_mostly_reasonable/cpt0eaj/?context=3
r/javascript • u/mrkipling • Mar 27 '15
158 comments sorted by
View all comments
4
hmmm... Array.join("") vs str += "some crap"
Ran some tests - string building is nearly twice faster than array.join()... Go figure.
2 u/skitch920 Mar 27 '15 Just to back you up. http://www.2ality.com/2011/10/string-concatenation.html
2
Just to back you up. http://www.2ality.com/2011/10/string-concatenation.html
4
u/[deleted] Mar 27 '15
hmmm... Array.join("") vs str += "some crap"
Ran some tests - string building is nearly twice faster than array.join()... Go figure.