Created
August 26, 2018 06:35
-
-
Save suissa/01098963a1e8468f332eafc90cba766a to your computer and use it in GitHub Desktop.
JavaScript - groupby - filter 03
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const plenos = list.filter(toGroup("level", "pleno")) | |
console.log({plenos}) | |
/** | |
{ plenos: | |
[ { id: 4, | |
name: 'John', | |
level: 'pleno', | |
active: false, | |
tags: [Array] } ] } | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment