git » homepage.git » master » tree

[master] / archive / forums / hacker-news / raw / items / 3615192.json

{"by":"wooby","id":3615192,"kids":[3615439],"parent":3614613,"text":"Also using underscore, with sortBy:<p><pre><code>    _.chain(people)\n    .sortBy(function(person) { \n      return person.firstName.length + person.lastName.length; })\n    .last()\n    .value()</code></pre>","time":1329797561,"type":"comment"}