Convert array to string comma separated in JavaScript

You can use JavaScript Array toString() Method

Example: 
var arrTags = ['Software Development and Engineering','Information Technology','Data Science and Analytics'];
var strTags = arrTags.toString();
OutPut: Software Development and Engineering,Information Technology,Data Science and Analytics

Comments

Popular posts from this blog

Creating Protected routes in ReactJS

Redirect http to https in codeigniter