Created
February 6, 2015 19:21
-
-
Save eviltrout/ab86250076eee21d2325 to your computer and use it in GitHub Desktop.
Hell ya
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
- var tags = this.get('value').split(',').map(function(v) { | |
- return v.trim(); | |
- }).reject(function(v) { | |
- return v.length === 0; | |
- }).uniq(); | |
- | |
+ const tags = this.get('value').split(',').map(v => v.trim()).reject(v => v.length === 0).uniq(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment