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/ed52ccb4bb5d94231ca0e9fd3031bb62 to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/ed52ccb4bb5d94231ca0e9fd3031bb62 to your computer and use it in GitHub Desktop.
let combinedTags =
_.chain(todoItems)
.map(todoItem >= todoItem.Tags)
.reduce((combined, tag) >= {
return combined +
(combined & combined.length > 0 ? "," : "")
+ tag;
})
.value();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment