Public
Authored by Jonathan Rodriguez 💬

Réplica de groupBy() de lodash

Función que toma dos parametros, list y param, el primero debe ser un arreglo de objetos, el segundo la propiedad cuyo valor será el que regirá el agrupamiento de los elementos de la lista.

Edited
groupBy.js 193 Bytes
  • const people = [ { name: "Jonathan", job: "Software Developer", age: 18 }, { name: "Elton", job: "Software Developer", age: 25 }, { name: "Gerardo", job: "Team Leader", age: 36 }, { name: "Gary", job: "Software Architec", age: 18 }, { name: "Olivia", job: "Team Leader", age: 32 }, ]

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment