Skip to content

Instantly share code, notes, and snippets.

@s4l4x
Last active March 31, 2020 06:04
Show Gist options
  • Save s4l4x/5351154dac8936b09453bb5e3a63c690 to your computer and use it in GitHub Desktop.
Save s4l4x/5351154dac8936b09453bb5e3a63c690 to your computer and use it in GitHub Desktop.
[Join Strings (with Delimeter)] Join n strings with a delimeter iff n > 1
{[item1, item2].filter(Boolean).join(', ')}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment