Skip to content

Instantly share code, notes, and snippets.

@viktor-evdokimov
Created January 23, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktor-evdokimov/cadb19acf2c837a41307 to your computer and use it in GitHub Desktop.
Save viktor-evdokimov/cadb19acf2c837a41307 to your computer and use it in GitHub Desktop.
underscore/lodash select many
var list = [{ fields: [{}, ...]}, { fields: [{}, ...]}, { fields: [{}, ...]}]
var allFields = _.flatten(_.plunk(list, 'fields'), true)
@romandvoskin
Copy link

typo: 'pluck' not 'plunk'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment