Multidimensional Array Spacebars show in Template

I have a multidimensional array and i want to display the information in a template

Output should be: John 5
cathy 20

I am able to do this kind of with {{this}} below, but I want to be able to call just names without number or just numbers without name… How is this possible? Can it be done without having to convert the array into an object?

`Template.showMe.helpers({
showArray: function(){
var multi = [ [“john”, 5], [“cathy”, 20] ];
}
});

//inside the showMe template I call:
{{#each showArray}}
{{this}}
{{/each}}

`

I would try
this.[0]
this.[1]

1 Like

Thanks that works!! posting solution below

{{#each showArray}} {{this.[0]}} : {{this.[1]}} <br /> {{/each}}

1 Like