Thats what a gold old for loop is good for:
for(var option of options){
return option.get("template_name");
}
Which equals:
return options[0].get("template_name");
Or getting all names:
const tnames = options.map( option => option.get("template_name") );