I have an Array, say something like that:
var array = [{something:"a"},{something:"b"},{something:"c"}]
I now want to get the Object which contains "b"
. How can I do that?
Here's what I tried finding before : I found out array.filter
and array.find
with includes
but I couldn't get a way on how to use it on a String inside Object inside an Array and not just strings inside an Array.