Skip to content

Instantly share code, notes, and snippets.

@eviltrout
Created February 6, 2015 19:21
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eviltrout/ab86250076eee21d2325 to your computer and use it in GitHub Desktop.
Save eviltrout/ab86250076eee21d2325 to your computer and use it in GitHub Desktop.
Hell ya
- 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