Created
August 25, 2016 03:04
-
-
Save ipassynk/7819740c77af122cc40cb3fcaddc77fc 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
let col = [ | |
{name:'Julia', count:4}, | |
{name:'Vadim', count:6}, | |
{name:'Anna', count:2}]; | |
let res = _.compose(_.get('name'), _.first, _.sortBy('count'))(col); | |
console.log(res); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment