Skip to content

Instantly share code, notes, and snippets.

@suissa
Created August 26, 2018 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suissa/5feb75979321c4bffa01d0145c4b23f1 to your computer and use it in GitHub Desktop.
Save suissa/5feb75979321c4bffa01d0145c4b23f1 to your computer and use it in GitHub Desktop.
JavaScript - groupby - filter 01
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