I am currently utilizing the SheetSU API to read data from a Google Sheets file.
var members = Sheetsu.read("URL", {}, successFunc);
For now, the successFunc
is a function that takes the input data
to console.log()
to me.
The data imports like this: (14){{..},{..},{..}....}
and each object within this dictionary looks something like this:
0: {Name: "First Last", ID: "12536723", Status: "Member"}
1: {Name: "First Last", ID: "12371238", Status: "Member"}
...
14: {Name: "First Last", ID: "12341228", Status: "Member"}
I need to pull out the values of Name
and ID
, however:
for (var x in data) {
console.log(x)
}
= 0, 1, 2, ..., 14
(as ints not objects)
for (var x in data) {
console.log(x.Name)
}
= undefined, undefined, ..., undefined