How to display the elements of an array with character index in Javascript?
<p>I'm working with an array like this one :</p>

<pre><code>var table = [a: 'text_1', b: 'test_2'];
</code></pre>

<p>I need to display all the elements of this array with a single function or method but we must consider that 'a' and 'b' are characters or strings, not numbers.</p>

<p>That's why I can't use the array.forEach() method !</p>

<p>Any idea?</p>