Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript add quote comma

var a = "1.1.1.1,2.2.2.2,3.3.3.3";
var b = a.split(',').map(function (str) {
  return '"' + str+ '"';
}).join(',');
console.log(b);
 
PREVIOUS NEXT
Tagged: #javascript #add #quote #comma
ADD COMMENT
Topic
Name
6+9 =