What is golfDBdata? I don't see it declared in the code you showed. I assume it's an array. How many elements does it have?
What is numDB? What is its value?
The error message is telling you that the value of numDB is greater than or equal to the number of elements in golfDBdata.
Another potential problem you have is you are running the code asynchronously. You may be trying to access data before it's been fetched.
Topic:
App & System Services
SubTopic:
Processes & Concurrency
Tags: