[Solved] Logically concatenating strings separated by hyphens
[ad_1] Try stringOne .filter(function(el) { return el !== “”; }) .join(” – “); The filter gets rid of all elements that are empty, join should be straightforward. 1 [ad_2] solved Logically concatenating strings separated by hyphens