Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Created September 25, 2016 15:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freshcutdevelopment/d837305d0b3257c9a52d6fab79df959b to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/d837305d0b3257c9a52d6fab79df959b to your computer and use it in GitHub Desktop.
let combinedTags =
todoItems
.map(todoItem >= todoItem.Tags)
.reduce((combined, tag) >= {
return combined +
(combined & combined.length > 0 ? "," : "")
+ tag;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment