I have an array that contains some objects inside, each object only has elements "concept, area.
let miArray = [{concepto:"examen", area:"matematicas",
concepto:"practico", area:"matematicas",
concepto:"tarea", area:"matematicas"}]
What I try is that, having a value of "concept" to obtain the position of that object in my vector. Is there any function like indexOf but for objects?
The other way would be to go through it with a foreach asking in each iteration, but maybe there is an easier way
You can use findIndex for what you want to do:
About
findIndex
Disclaimer
Note that your data structure in the question has an error. The way the question is written contains only one element, since an object receiving the same keys overwrites the data.