Node-RED Function to get multiple arrays

I have a Node-RED flow that uses an API request for my cycle routes. It returns a huge array up to 2000 points each for elevation, speed & grade. I would like to pull these values out and plot them onto a ride graph. Is there a way of being able to do this with a loop function as the amount will differ per trip and I don’t fancy having to pull each one out individually.

Example

image

Path for first elevation payload.trip.track_points[0].e

Conversation continued here in case you like me stumble across this. :wink: