Created
August 26, 2018 06:28
-
-
Save suissa/5feb75979321c4bffa01d0145c4b23f1 to your computer and use it in GitHub Desktop.
JavaScript - groupby - filter 01
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 obj1 = { | |
id: 1, | |
name: "Suissa", | |
active: true, | |
level: "senior", | |
tags: [ | |
"teacher", | |
"dev", | |
"js" | |
] | |
} | |
const obj2 = { | |
id: 2, | |
name: "Bella", | |
active: true, | |
level: "senior", | |
tags: [ | |
"teacher", | |
"dev", | |
"js" | |
] | |
} | |
const obj3 = { | |
id: 3, | |
name: "Joana", | |
level: "senior", | |
active: true, | |
tags: [ | |
"dev", | |
"js" | |
] | |
} | |
const obj4 = { | |
id: 4, | |
name: "John", | |
level: "pleno", | |
active: false, | |
tags: [ | |
"dev", | |
"js" | |
] | |
} | |
const list = [ | |
obj1, obj2, obj3, obj4 | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment