Skip to content

Instantly share code, notes, and snippets.

@mjgpy3
Created April 23, 2016 02:30
Show Gist options
  • Save mjgpy3/797466aec828c91ba153513308173470 to your computer and use it in GitHub Desktop.
Save mjgpy3/797466aec828c91ba153513308173470 to your computer and use it in GitHub Desktop.
Fun with Lodash
_.flow(
  _.castArray,
  _.partial(_.at, _, ['[0].id', '[0]']),
  _.spread(put)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment