takes two parameters: str (string) and len (length).</p>
<pre class="language-javascript line-numbers"><code class="javascript language-javascript">Ember<span class="token punctuation">.</span>Handlebars<span class="token punctuation">.</span><span class="token function">helper</span><span class="token punctuation">(</span><span class="token string">'truncate'</span><span class="token punctuation">,</span> <span class="token keyword">function</span><span class="token punctuation">(</span><span class="token 