Skip to content

Instantly share code, notes, and snippets.

@boo1ean
Created August 24, 2017 18:07
Show Gist options
  • Save boo1ean/c9510259353ca141f32c1d23baf940e3 to your computer and use it in GitHub Desktop.
Save boo1ean/c9510259353ca141f32c1d23baf940e3 to your computer and use it in GitHub Desktop.
const cars = [
{
title: 'Opel',
power: 100,
},
{
title: 'Audi',
power: 200,
},
{
title: 'Mazda',
power: 100,
},
]
const title = _.chain(cars)
.filter(car => car.power > 100)
.head()
.pick('title')
.value()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment