I have an array of objects:
(7) [{…}, {…}, {…}, {…}, {…}, {…}, {…}]
and an id value that I want to look for inside of this array of objects.
The id = "c2a6e78d2bc34cffb08d6e17a5631467"
then using, this id, I want to return to me the object that has the id matching the one I have. After that, I just simply want to get a different property of that object, like object.createdAt.
My question is: would it be possible to use .map over this array, and then use this id to return to me the one object that contains and matches this id? So far I've used map, and filter but maybe I'm using this the wrong way...