Skip to content

Instantly share code, notes, and snippets.

@aleduca
Last active July 3, 2023 21:11
Show Gist options
  • Save aleduca/f1e6d46e2b3d3323edbe5549c7538a81 to your computer and use it in GitHub Desktop.
Save aleduca/f1e6d46e2b3d3323edbe5549c7538a81 to your computer and use it in GitHub Desktop.
var numscore = [
{score: 100, resultados: [1,2,3]},
{score: 200, resultados: [4,5,6]}
]
var results = numscore.find(function(value,index){
return value.resultados.includes(3);
});
console.log(results.score);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment