<commit_before>---
layout: post
title: How to Access Array of Array in Ember.js
---

For example you have array like this:

```javascript
[[1, "Orange"], [2, "Grape"], [3, "Fruit"]]
```

The simplest and straightforward way to access the individual elements from handlebars template is like this:

```html
{{#each fruitArrays as |fruitArray|}}
   <option value={{fruitArray.[0]}}>{{fruitArray.[1]}}</option>
{{/each}}
```<commit_msg>edit how to access array of array in ember.js<commit_after>---
layout: post
title: How to Access Array of Array in Ember.js
---

For example you have array like this:

```javascript
[[1, "Orange"], [2, "Grape"], [3, "Fruit"]]
```

The simplest and straightforward way to access the individual elements from handlebars template is like this:

<pre>
{{#each fruitArrays as |fruitArray|}}
   <option value={{fruitArray.[0]}}>{{fruitArray.[1]}}</option>
{{/each}}
</pre>
{'fraction_non_alphanumeric': 0.17130144605116795, 'fraction_numerical': 0.011123470522803115, 'mean_word_length': 4.960264900662252, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4439555', 'n_tokens_mistral': 299, 'n_tokens_neox': 282, 'n_words': 109}