Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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