-2

How to convert - alice,bob,charlie to alice bob charlie? Is there some kind of .join or .strip operation for this?

Rack Lucifer
  • 11
  • 1
  • 6

1 Answers1

1

You can:

var s = "alice,bob,charlie";
s.split(",").join(" ");