Skip to content

Instantly share code, notes, and snippets.

@xianxingg
Created March 10, 2016 02:26
Show Gist options
  • Select an option

  • Save xianxingg/21c90fc76ce47d993e27 to your computer and use it in GitHub Desktop.

Select an option

Save xianxingg/21c90fc76ce47d993e27 to your computer and use it in GitHub Desktop.
快速找到应该使用哪个underscore函数
  1. 选出列表中每个object的某一个属性 _.pluck([{a:1, b:11}, {a:2, b:22}], 'a') => [1, 2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment