Created
September 25, 2016 15:22
-
-
Save freshcutdevelopment/ed52ccb4bb5d94231ca0e9fd3031bb62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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