I actually found the answer almost immediately after I posted. Here is the code in case anyone else has this issue.
for (key in vars) {
detailArray.addItem({key:key, value:vars[key]})
}
I actually found the answer almost immediately after I posted. Here is the code in case anyone else has this issue.
for (key in vars) {
detailArray.addItem({key:key, value:vars[key]})
}