Created
August 26, 2017 11:21
-
-
Save ayende/6ea9a048efbd34f8aa2b09bb347be200 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
select { | |
Nick: d.Nick, | |
FirstName: d.FirstName, | |
LastName: d.LastName | |
} | |
select { | |
Name: d.FirstName + " " + d.LastName, | |
Nick: d.Nick, | |
Votes: d.PlusVotes - d.NegativeVotes | |
} | |
select { | |
Name: (function(d) { | |
if (d.Nick != null) | |
return d.Nick; | |
return d.FirstName + " " + d.LastName; | |
})(d), | |
Votes: d.PlusVotes - d.NegativeVotes | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment