-name">div</span>&gt;</span></code></pre></div></div><div class="example-code-section"><h3>JavaScript</h3><div class="qm-code-highlight-codeblock language-js"><pre><code class="qm-code-font"><span class="hljs-keyword">var</span> items = [
  {
    <span class="hljs-attr">type</span>: <span class="hljs-string">'A'</span>,
    <span class="hljs-attr">name</span>: <span class="hljs-string">'A Text'</span>
  },
  {
    <span class="hljs-attr">type</span>: <span class="hljs-string">'B'</span>,
    <span class="hl