i have an object on state that is inside of an array, for purposes that make me want to cry (not really but i am sure you get what i mean). i need to take the object outside of the array and assign one of the keys to a variable to pass it on a query (the query part is just background info, not important to the question).
0 {…}
id 1
dentist dentist_test
date 1/26/2018
time 6543
avalable false
name dentist_test
office test_office
this is what is on state but like i said it is also in an array.
i want something like this
var id = what ever id is on state