Skip to content

Instantly share code, notes, and snippets.

@khoand0000
Last active January 1, 2016 04:14
Show Gist options
  • Save khoand0000/84a37f678e403a5858a4 to your computer and use it in GitHub Desktop.
Save khoand0000/84a37f678e403a5858a4 to your computer and use it in GitHub Desktop.
groupBy vs. partition
.groupBy .partition
Same split array follow given condition same
Difference return >= 1 set return <= 2 sets
Return object with each item is key: Array Array with 2 items [Array, Array]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment