jquery - Transform Javascript Array into delimited String -


I have a JavaScript string array with values ​​such as A12, B50, C 105 etc. And I have it in a delimited pipe Want to change the string like this: A12 | B50 | C105 ...

How can I do this? I am using jQuery (if it helps in some type of Biltin function).

  var pipe_delimited_string = string_array.join ("|"); Javascript has a native  array  method that changes an array in a string,  include  by the specified separator (which may be Is empty string, a letter, or multiple characters). 


Comments