I want to search only the first column of myarray and return the index:
example search for "s1" returns 0, search "s3" returns 1, and so on
javascript
myarray = [
['s1', 's2'],
['s3', 's4'],
['s5', 's6']
]
I want to search only the first column of myarray and return the index:
example search for "s1" returns 0, search "s3" returns 1, and so on
javascript
myarray = [
['s1', 's2'],
['s3', 's4'],
['s5', 's6']
]