I love the map use above, but you can use this code to iterate over a list and get back a list of objects just in case you need to pull up other named field value
//This code get the list as an object which you can then iterate over
let objToFetch = properties.variable_list.get( 0, properties.variable_list.length());
//Use this code if you need to examine the object length console.log('objToFetch',objToFetch.length);
//Get and add variables to plugin
objToFetch.forEach(e => {
let n = e.get(properties.variable_names);
let v = e.get(properties.variable_values);
//use this code to examine the results console.log('Variable Added','Vartiable Name:',n,'Variable Value:',v);
});