Last active
July 3, 2023 21:11
-
-
Save aleduca/f1e6d46e2b3d3323edbe5549c7538a81 to your computer and use it in GitHub Desktop.
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
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