Created
June 10, 2016 12:51
-
-
Save marioblas/674d3d23ee18260a01694ca3f379f2ed to your computer and use it in GitHub Desktop.
Javascript - Turn array into comma-separated list
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
/** | |
* Turn array into comma-separated list | |
* @param {Array} list | |
* @return {String} | |
*/ | |
const arrayToCommaSeparated = (list) => { | |
return list.join(', '); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment