Skip to content

Instantly share code, notes, and snippets.

@Roger-Melo
Last active April 8, 2024 23:15
Show Gist options
  • Save Roger-Melo/7357f7c265a8d7d435e887f340d83535 to your computer and use it in GitHub Desktop.
Save Roger-Melo/7357f7c265a8d7d435e887f340d83535 to your computer and use it in GitHub Desktop.
Boilerplate para um caso de uso do reduce()
const phaseScores = [
{ name: 'Vinicius Costa', score: 337 },
{ name: 'Roger Melo', score: 43 },
{ name: 'Alfredo Braga', score: 234 },
{ name: 'Pedro H. Silva', score: 261 },
{ name: 'Ana Paula Rocha', score: 491 },
{ name: 'Vinicius Costa', score: 167 },
{ name: 'Roger Melo', score: 137 },
{ name: 'Alfredo Braga', score: 135 },
{ name: 'Ana Paula Rocha', score: 359 },
{ name: 'Pedro H. Silva', score: 133 }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment