I just need the second object “data[0][1]” But I cannot deconstruct it
I been trying with:
let [a, b] = data
console.log(b) // undefined
This is the array
const data = [
[
{
"status": "rejected",
"reason": {
"name": "APIError",
"errors": {
"assessment": [
"Assessment already exists"
]
},
"statusCode": 422
}
},
{
"id": 5,
"applicant": {
"id": 5,
"full_name": "Arturo Schamberger DDS",
},
"job": {
"id": 17,
"position": "Design Architect"
},
"date_submitted": "2022-08-02T14:16:02.080Z",
"terms_and_conditions": {
"title": "Terms And Condition for Design Architect",
"description": [
{
"page_one": "Repellat voluptatem dolor. Quo aut consequuntur. Quia repudiandae ex."
},
]
},
"status": "Open - Shortlisted",
"stage": "Open"
}
]
]