Created
June 4, 2014 08:10
-
-
Save unknownuser88/712555f2006d83ca8312 to your computer and use it in GitHub Desktop.
The Fastest Way to Build a String
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = ['item 1', 'item 2', 'item 3']; | |
var list = '<ul><li>' + arr.join('</li><li>') + '</li></ul>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment