0

I receive answer from a form. I receive an object of objects where each object correspond to the answer of one question:

enter image description here

I'm searching the equivalent of the function .find that can be used for array.

What I want would be something like this : object.answer where object.name === "nombreDetoiles"

How can I do that in JavaScript?

Thanks for your help

evolutionxbox
  • 3,932
  • 6
  • 34
  • 51
j.colin
  • 3
  • 1
  • 3
    Does this answer your question? [Find object by id in an array of JavaScript objects](https://stackoverflow.com/questions/7364150/find-object-by-id-in-an-array-of-javascript-objects) combine it with [`Object.values`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values) – evolutionxbox Aug 07 '23 at 13:37

0 Answers0