Created
April 13, 2017 12:01
-
-
Save philipusis/b328cb2f9e7b1621c79e5a2fc033ec96 to your computer and use it in GitHub Desktop.
This file contains 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 result = ''; | |
var params = ["foo", "bar"]; | |
$.each(params, function(index, value) { | |
result += (result ? ',' : '') + value; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment