How do I iterate through an array of results from a step?

@pierce any development on Pipedream iterator? Today I checked Helper Functions but haven’t found an iterator helper.
I tested the suggested code like:

for (const record of steps.advanced_search.$return_value.records) {
  var tempArray = steps.advanced_search.$return_value[record].entities;
  ...
}

but I got back error:

TypeError, steps.advanced_search.$return_value.records is not iterable

despite it is an array of 100 objects.
Pls note
steps.advanced_search.$return_value
doesn’t have a visible “records” property ( it might be a hidden system property though )

If I remove “records” property from code like:

for (const record of steps.advanced_search.$return_value) {
  var tempArray = steps.advanced_search.$return_value[record].entities;
  ...
}

I got error message of:

TypeError, Cannot read property ‘entities’ of undefined

I don’t want to bump or OFF the OP, but my issue is just the same as OP:
“How do I iterate through an array of results from a step?”

and as I see there’s still no solution in this.