It really depends on how you want to use the record after receiving it. One strategy may be to return only an array of values, discarding keys. Then, in your code, use your personal knowledge of what array value you need when processing the record. Something like:
var result=[]; Object.keys(record).forEach(function(key){result.push(record[key]);});
And then in your code, use array indices to access the values.
Rob raisch
source share