Transform Javascript Array into delimited String

var pipe_delimited_string = string_array.join("|");

Array.join is a native Array method in Javascript which turns an array into a string, joined by the specified separator (which could be an empty string, one character, or multiple characters).

Leave a Comment