How can I access the first value in the first array of an array of arrays?
questions: [
[
'Purchase only', 'Sale and purchase',
'Sale only', 'Remortgage'
],
[
'Leasehold', 'Freehold'
],
[
'Yes', 'No'
]
]
I want to do something like this:
if (this.quoteResults[1] == this.questions[0][0])
DOESNT WORK
Instead of doing this:
if (this.quoteResults[1] === 'Purchase only')
THIS WORKS BUT I WANT TO USE ARRAY INDEX INSTEAD