Skip to content

Instantly share code, notes, and snippets.

@marioblas
Created June 10, 2016 12:51
Show Gist options
  • Save marioblas/674d3d23ee18260a01694ca3f379f2ed to your computer and use it in GitHub Desktop.
Save marioblas/674d3d23ee18260a01694ca3f379f2ed to your computer and use it in GitHub Desktop.
Javascript - Turn array into comma-separated list
/**
* 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